线程基础知识
摘要:
Semaphores can be useful in limiting concurrency—preventing too many threads from executing a particular piece of code at once. In the following example, five threads try to enter a nightclub that a... 阅读全文
posted @ 2012-07-10 17:57 GIS-MAN 阅读(153) 评论(0) 推荐(0) 编辑