几个主要的source code路径: /system/core/include/utils/threads.h /system/core/include/utils/Thread.h /system/core/include/utils/AndroidThreads.h /system/core/ ...
分类:
移动开发 时间:
2017-02-22 16:59:10
阅读次数:
212
参考文档: http://jingyan.baidu.com/article/4e5b3e19333ff191911e2459.html 利用JMeter配置代理:1、添加线程组: Test Plan -> Add -> Threads (Users) -> Thread Group 2、添加HTT ...
分类:
其他好文 时间:
2017-02-10 19:49:18
阅读次数:
135
Servlet容器应该绝大部分(有可能全部)是Thread per Request,每个请求一个线程。此外有Thread per Connection,应该不是用于Servlet容器。请见 How are Threads allocated to handle Servlet request? 另外 ...
分类:
其他好文 时间:
2017-02-09 00:38:51
阅读次数:
143
weblogic 10后台出现警告,原因:ThreadPool has stuck threads 在WEBLOGIC中如果一个线程执行时间超过了Stuck Thread Max Time规定的时间, WEBLOGIC会把它认为是STUCK线程,并记录在日志中。 我们也可以通过'Dump Threa ...
分类:
其他好文 时间:
2017-01-25 12:42:18
阅读次数:
849
实例一: 创建线程,使用threading.Thread()方法,调用方法target=test,args方法对test传参。创建好的线程装载到threads数组中。 线程对象有两个用来管理线程机制的方法: setDaemon 和 join 主线程启动若干个子线程后,如果需要等待所有的子线程执行完毕 ...
分类:
编程语言 时间:
2017-01-21 17:06:02
阅读次数:
525
vim/etc/salt/masterinterface:192.168.28.141#绑定到本地的某个网络地址publish_port:4505#默认端口4505,设置master与minion通信端口user:root#运行salt进程的用户max_open_files:100000#master可以打开的最大句柄数worker_threads:5#启动用来接收或应答minion的线程数ret_por..
分类:
其他好文 时间:
2017-01-20 21:08:56
阅读次数:
259
mysql版本号1show variables like 'innodb_version'\G;查看IO线程数1show variables like 'innodb_%io_threads'; \G查看IO线程数null ...
分类:
数据库 时间:
2017-01-18 12:48:58
阅读次数:
259
Mutex class A mutex is a lockable object that is designed to signal when critical sections of code need exclusive access, preventing other threads wit ...
分类:
其他好文 时间:
2017-01-14 11:02:49
阅读次数:
161
一、Mysql连接数 1、配置Mysql连接数: vim /etc/my.cnf [mysqld]下面修改 max_connections=1000 不写默认为100。 wait_timeout=60 设置超时时间 2、查看当前连接数: show status like '%Threads_conn ...
分类:
数据库 时间:
2017-01-11 14:02:33
阅读次数:
423
CountDownLatch位于java.util.concurrent包下,是JDK1.5的并发包下的新特性。 首先根据Oracle的官方文档看看CountDownLatch的定义: A synchronization aid that allows one or more threads to ...
分类:
其他好文 时间:
2017-01-10 17:49:14
阅读次数:
340