码迷,mamicode.com
首页 >  
搜索关键字:rt thread    ( 14779个结果)
ThreadLocal
folly/ThreadLocal.h Improved thread local storage for non-trivial types. ~4x faster than boost::thread_specific_ptr. Similar speed as using pthread_ge ...
分类:其他好文   时间:2018-07-24 14:00:35    阅读次数:201
Thread pools & Executors
Thread pools & Executors Run your concurrent code in a performant way All about thread pools # How do I use the thread pools? # Wangle provides two co ...
分类:其他好文   时间:2018-07-24 13:59:42    阅读次数:309
ThreadCachedInt
folly/ThreadCachedInt.h High-performance atomic increment using thread caching. folly/ThreadCachedInt.h introduces a integer class designed for high p ...
分类:系统相关   时间:2018-07-24 13:58:04    阅读次数:213
Thread线程类
设置线程名 查看线程名是很简单的,调用Thread.currentThread().getName()即可。 守护线程 守护线程是为其他线程服务的 垃圾回收线程就是守护线程~ 守护线程有一个特点: 当别的用户线程执行完了,虚拟机就会退出,守护线程也就会被停止掉了。 也就是说:守护线程作为一个服务线程 ...
分类:编程语言   时间:2018-07-24 11:54:12    阅读次数:170
MySQL 主从复制延时监控
#!/bin/bash USER="root" PASSWORD="root123" MYSQL="/usr/mysql/mysql-5.6.10/client/mysql" HOST="10.198.19.4" thread_status=$($MYSQL -u"$USER" -p"$PASSWORD" -h"$HOST" -e ‘show slave status\G‘ | grep -i y
分类:数据库   时间:2018-07-24 10:16:58    阅读次数:175
Java并发编程原理与实战六:主线程等待子线程解决方案
本文将研究的是主线程等待所有子线程执行完成之后再继续往下执行的解决方案 首先是一个线程,它执行完成需要5秒。 1、主线程等待一个子线程 在主线程中,需要等待子线程执行完成。但是执行上面的main发现并不是想要的结果: 子线程执行时长:0Thread-0子线程开始Thread-0子线程结束 很明显主线 ...
分类:编程语言   时间:2018-07-24 00:46:50    阅读次数:237
多线程<一>创建的五中方式
一,多线程创建方式一继承Thread类创建线程 Thread类本质上是实现了Runnable接口的一个实例,代表一个线程的实例。启动线程的唯一方法就是通过Thread类的start()实例方法。start()方法是一个native方法,它将启动一个新线程,并执行run()方法。这种方式实现多线程很简 ...
分类:编程语言   时间:2018-07-23 22:05:41    阅读次数:213
ubuntu安装boost库
1.官网下载boost库(www.boost.org) 2.解压并进入文件夹 3.使用命令 ,可以通过加上 prefix help 4.使用命令 etc.如果运行发现缺少文件,ex.缺少threadpool文件,那么就去threadpool官网下载并安装 参考: "在ubuntu上安装boost库" ...
分类:系统相关   时间:2018-07-23 19:51:24    阅读次数:197
centos7 安装php 多线程pthreads
第一步:yum源更新 yum update 第二步:下载php7源码 wget http://124.202.164.8/files/312100000A0BB72D/cn.php.net/distributions/php-7.0.18.tar.gz 第三步:安装依赖库文件[注意dev/devel ...
分类:编程语言   时间:2018-07-23 18:05:47    阅读次数:1085
Exception in thread "Thread-1" java.util.ConcurrentModificationException 异常原因和解决方法
注:参考博客:https://www.cnblogs.com/dolphin0520/p/3933551.html1、单线程环境下的异常重现 在while(iterator.hasNext()) 循环遍历时,只允许删除ArrayList 内部的 elementData[ ] 的最后一个元素,而不允许 ...
分类:编程语言   时间:2018-07-23 18:00:54    阅读次数:305
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!