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.
在一个连接变化很快的繁忙服务器上,对线程进行缓存便于以后使用可以加快最初的连接。
For example, if you anticipate 200 Web mail users, a suitable initial setting for the HTTP threads is 20.
例如,如果您预期200个Web邮件用户,那么合适的初始http线程的数量为20。
For example, if you anticipate 200 Web mail users, a suitable initial setting for the HTTP threads is 20.
例如,如果您预期200个Web邮件用户,那么合适的初始http线程的数量为20。
应用推荐