#-*-coding:utf-8-*-
importQueue
importthreading
importtime
q=Queue.Queue(100000)
defproducer():
foriinrange(1000):
q.put(i)
time.sleep(0)
defconsumer():
foriinrange(1000):
printq.get(),q.qsize()
time.sleep(0)
threads=[]
th=threading.Thread(target=cons..
分类:
编程语言 时间:
2015-08-14 19:34:35
阅读次数:
161
Jmeter是一款优秀的开源测试工具使用java开发的,开源免费的,测试工具,主要用来做功能测试和性能测试(压力测试/负载测试)对于HTTP协议的理解可以有效促进Jmeter的学习。Jmeter是一款压力测试工具。ThreadGroup:number of threads:线程数,可以用来模拟用户数...
分类:
其他好文 时间:
2015-08-12 18:26:33
阅读次数:
109
#-*-coding:utf-8-*-
__author__=‘magicpwn‘
importthreading
importtime
importQueue
defworker():
printthreading.current_thread().getName()
defworker2():
foriinrange(0,1000):
printi
time.sleep(1)
threads=[]
foriinrange(5):
t=threading.Thread(target=worker)#..
分类:
编程语言 时间:
2015-08-11 23:39:27
阅读次数:
267
Recommended Reading Lists for Junior Programmer
(1) C And C++
(2) FreeBSD
(3) General And Software EngineeringLinux
(4) Linux
(5) MAC OS
(6) Misc
(7) Multi-threads
(8) Network, TCP/IP
(9) QT
(...
分类:
其他好文 时间:
2015-08-09 14:13:51
阅读次数:
244
/** This demo shows how to use semaphore between threads.**/#include #include #include #include #include /** Global var*/int number;sem_t sem_id;void*...
分类:
系统相关 时间:
2015-08-07 19:08:45
阅读次数:
144
/** This demo shows how to use semaphore between threads.**/#include #include #include #include #include /** Global shared resource*/struct shared_res...
分类:
系统相关 时间:
2015-08-07 18:55:35
阅读次数:
277
public class Looper extends? Object java.lang.Object ???? android.os.Looper Class Overview Class used to run a message loop for a thread. Threads by default do not have a message loop associat...
分类:
其他好文 时间:
2015-08-07 16:40:53
阅读次数:
276
数据表MMS模块总共包含17张表:addr、android_metadata、attachments、canonical_addresses、drm、part、pdu、pending_msgs、rate、raw、sms、sr_pending、threads、words、words_content、w...
分类:
移动开发 时间:
2015-08-06 12:33:26
阅读次数:
234
http://forum.unity3d.com/threads/serialization-best-practices-megapost.155352/http://docs.unity3d.com/Manual/script-Serialization.htmlhttp://blogs.uni...
分类:
编程语言 时间:
2015-08-06 00:22:12
阅读次数:
139
一、在mingw-w64官网下载mingw-w64在线安装包二、点击mingw-w64进行安装,选择: Version:选最新版本 我这个是4.9.2 Architecture:x86_64 (64位系统环境开发64位程序) Threads:posix Exception:seh Buil...
分类:
其他好文 时间:
2015-08-05 06:23:39
阅读次数:
937