On 2012-4-21 10:23, asmwarrior wrote: > What does "Give preference for non executing threads"? > Any way to give preference for executing threads? Oh, this is no a good question, run which thread is mainly context dependent, e.g. OS scheduler. Forget to say: I think your patch is OK.