From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <20110701160026.0db036cd@leffe.cs.bell-labs.com> <83656e84a9290648e03a7e880786e132@ladd.quanstro.net> Date: Fri, 1 Jul 2011 13:51:26 -0400 Message-ID: Subject: Re: [9fans] why not halt in x86 multicore From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Topicbox-Message-UUID: f8f3d0c2-ead6-11e9-9d60-3106f5b1d025 On Fri, Jul 1, 2011 at 1:47 PM, Ali Mashtizadeh wrote: > The hlt instruction on x86 leaves the halt state after an external > interrupt is fired. I'm not sure why you think it doesn't work? he didn't say it didn't work. he said it required waiting for the next interrupt, of which the only guaranteed one is the next clock interrupt, which might be a long time coming. interprocessor interrupts are the obvious solution but no one has bothered to implement them.