执行一些工作以确定发生了什么事件,然后执行少量工作分配必需的任务以处理此事件(上下文切换)。
Some amount of work is done to determine what event occurred and, after a small amount of work, the required task is dispatched to deal with the event (a context switch).
在这样的系统中,使Web服务器的基本内核在各个进程之间切换(以便确定它们是否有需要CPU处理的工作)所需的开销将成为瓶颈。
In such a system, the overhead that it takes for a web server's underlying kernel to switch between each process (to see if they have any work for the CPU to do) becomes a bottleneck.
要解决这个问题还有其他一些方法,例如在编译时明确定义版本参数,从而可以在不同版本的头文件之间进行切换。
Alternative approaches to this problem exist, such as explicit version parameters you can define during compilation to switch between header versions.
应用推荐