这意味着可以使用每个请求对应一个线程(Thread-Per-Request)的实现方式,而非每个连接对应一个线程(Thread-Per-Connection)。由于线程在不需要时可以更频繁的循环使用,性能就会得到提高。
基于22个网页-相关网页
The request/response cycle lends itself to the classic one thread per connection model.
请求/响应周期使它成为了经典的模型,即每个连接使用一个线程。
Thus it is relatively straightforward to implement the classic one thread per connection model.
因此实现典型的每个连接一个线程的模型便非常简单。
A global thread (per server process) is responsible for creating and managing each user connection thread.
一个全局线程(每个服务器进程一个)负责创建和管理用户连接线程。
应用推荐