search for: whoprempt

Displaying 1 result from an estimated 1 matches for "whoprempt".

2011 Jan 18
2
Surprise Thread Preemptions
...re, I ran a multithreaded program "myprogram" with 32 threads on my 24-core Solaris machine. I make sure that each thread of my program has same priority (priority zero), so that we can reduce priority inversions (saving preemptions -- system overhead). However, I ran the following script whoprempt.d to see who preempted myprogram threads and got the following output Unlike what I thought, myprogram threads are preempted (for 2796 times -- last line of the output) by the threads of same myprogram. Could anyone explain why this happens, please? DTrace script ============== #pragma D optio...