The first thread locks the mutex and appends data to the queue, while the other threads wait for their turn.
第一个线程锁住互斥并把数据添加到队列中,而其他线程等待轮到它们操作。
The purpose of the sleep is to allow the garbage collector to finish up after it has released the other threads.
休眠的目的在于给垃圾回收器充分的时间,在释放其他线程之后完成工作。
If main finishes before the threads it has created and exits with pthread_exit , the other threads continue to execute.
如果main在它创建的线程之前完成,并使用pthread_exit退出,那么其他线程将继续执行。
Other threads called the weft are placed over and under the warp.
VOA: special.2009.11.04
There are lots of other writers we could include, including those two that I named, that would equally illustrate some of the threads that I've got on the syllabus now, but these are the ones for various practical and more substantive reasons that I have chosen.
我们其实还可以讲很多其他作家,包括刚才提到的那两位,他们也能阐述我大纲里的一些主题思想,但是因为各种实用并且更为实在的原因的存在,我才选了这些作家的作品。
应用推荐