title: How to block a thread into nop or low power status instead of switch itself outof processor
body: <p>I'm writing an user-space program, in which I want to "block" a thread at some time. If I use mutex like function, the thread would be switched out of the processor. What I want is to let the thread keep on the proccessor without context switch invovled in a low power status or loop nop operations. And at some time, another thread could "wake" it up or "unblock" from the nop or low power status and continue execution. Is there any function or lib I can use?</p>