Home > OS >  The relationship of thread blocks and CPU accounted
The relationship of thread blocks and CPU accounted

Time:09-17

When a program thread IO block, by top view to CPU high proportion, what happens in between?

CodePudding user response:

Crash bai

CodePudding user response:

Thread blocking and no connection between CPU utilization high,
Blocked threads usually enter a dormant state, wait until a certain required resources (such as lock, variables, etc.), will perform down (CPU); Do not rule out more bad code, have been using a spin lock wait way blindly,
CPU utilization is high, may be the result of other tasks, so that the blocked thread is difficult to obtain the resources needed to

CodePudding user response:

IO events will not cause the CPU thread is high,
Look at the thread, then perform a few times more pstack & lt; Dar & gt; Take a look at this thread is doing

CodePudding user response:

The blocking process is the high? If is is waiting for IO, isn't it a high iowait? Look for it again,
  • Related