>>>>> On Thu, 17 Nov 2005 11:21:45 +0900 (JST), Atsushi Nemoto <anemo@xxxxxxxxxxxxx> said: anemo> And I checked x86 implemetation and found that HLT or MWAIT anemo> instruction also must be used with interrupts enabled. So IIUC anemo> it seems x86 have same latency problem too. No, I was wrong. MWAIT (and MONITOR) instruction provides something like "test and wait" mechanism. mwait_idle() is using them for thread_flag, so there is no latency problem on processors which have MWAIT/MONITOR. --- Atsushi Nemoto