首页 > 试题广场 >

Under what circumstances does

[问答题]
Under what circumstances does a multithreaded solution using multiple kernel threads provide better performance than a single-threaded solution on a single-processor system?
推荐
When a kernel thread suffers a page fault,another kernel thread can be switched in to use the interleaving time in a useful manner.A single-threaded process,on the other hand,will not be capable of performing useful work when a page fault takes place .Therefore,in scenarios where a program might suffer from frequent page faults or has to wait for other system events,a multi-threaded solution would perform better even on a
single-processor system.
发表于 2018-05-05 22:03:08 回复(0)