深入解析条件变量 什么是条件变量(condition variables) 引用APUE中的一句话: Condition variables are another synchronization mechanism available to threads. These synchronizati ...
分类:
其他好文 时间:
2018-03-18 17:44:54
阅读次数:
186
A Java NIO Pipe is a one-way data connection between two threads. A Pipe has a source channel and a sink channel. You write data to the sink channel. ...
分类:
编程语言 时间:
2018-03-11 19:27:32
阅读次数:
188
一 线程queue queue is especially useful in threaded programming when information must be exchanged safely between multiple threads. 有三种不同的用法 1. class que ...
分类:
编程语言 时间:
2018-03-07 20:15:56
阅读次数:
258
序言 Thread是能够使多个code paths 在同一个APP内并发运行的几种技术之一。虽然新的技术为并发运行提供了先进、高效的工具(例如operation 对象和GCD),但是OS X和iOS也提供了用于创建和管理threads的接口。 如果我们正在开发一个新的APP,应该先调研 ...
分类:
移动开发 时间:
2018-03-02 14:43:21
阅读次数:
180
前言: Jmeter插件相关请移步:https://www.jianshu.com/p/130c7fddeddf 自定义线程组:jp@gc - Ultimate Thread Group,功能强大,可以实现多种场景设置,详细介绍见本文。 一、添加线程组 步骤:右键测试计划->添加->Threads( ...
分类:
其他好文 时间:
2018-03-02 10:54:48
阅读次数:
264
查看mysql数据库连接数、并发数相关信息 1.mysql> show status like 'Threads%'; + + + | Variable_name | Value | + + + | Threads_cached | 58 | | Threads_connected | 57 | # ...
分类:
数据库 时间:
2018-02-28 16:20:09
阅读次数:
199
一、问题描述mysqlv5.0.91[root@localhostbin]#./mysqlbinlog/tmp/mysql-bin.000015/!40019SET@@session.max_insert_delayed_threads=0/;/!50003SET@OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0/;DELIMITER/
分类:
数据库 时间:
2018-02-27 16:31:17
阅读次数:
462
一、 POSIX 中对可重入和线程安全这两个概念的定义: Reentrant Function:A function whose effect, when called by two or more threads,is guaranteed to be as if the threads each ...
分类:
编程语言 时间:
2018-02-26 15:15:52
阅读次数:
223
一、tomcat设置 1. acceptCount The maximum queue length for incoming connection requests when all possible request processing threads are in use. Any reque ...
分类:
编程语言 时间:
2018-02-24 11:45:00
阅读次数:
335
在单独线程执行代码 參考地址:http://developer.android.com/training/multiple-threads/define-runnable.html Runnable对象,是一个接口,里面仅仅有一个run方法。它仅仅是表示一段能够执行的代码。说这句话,是说明它并不一定 ...
分类:
移动开发 时间:
2018-02-18 17:24:30
阅读次数:
261