All threads have an initial memory area that's used for the thread's lifetime.
所有线程都有一个初始存储区,将在该线程的生命周期中使用。
If multiple threads attempt to lock a semaphore after the initial call above, they block and their requests are queued until the pthread_mutex_unlock call is performed.
如果多个线程在完成上面的初始调用后尝试锁定信号量,则这些线程会被阻塞,它们的请求进入队列,直到执行pthread _ mutex_unlock调用。
On a busy server where connections are torn up and down quickly, caching threads for use later speeds up the initial connection.
在一个连接变化很快的繁忙服务器上,对线程进行缓存便于以后使用可以加快最初的连接。
应用推荐