Re: basic and stupid question on wait_event and wake_up
From: Ming Liu <hidden>
Date: 2007-08-13 09:46:17
Thank you so much for your explanation. Now I am quite clear on this topic. Domen, Sorry for my misspelling of your name. That should be "Domen" not "Momen". Sorry for that. :) BR Ming
From: Domen Puncer <redacted> To: Ming Liu <redacted> CC: Linuxppc-embedded@ozlabs.org Subject: Re: basic and stupid question on wait_event and wake_up Date: Mon, 13 Aug 2007 11:31:07 +0200 On 13/08/07 09:22 +0000, Ming Liu wrote:quoted
Dear Momen, OK. I see now. So you mean condition is only to judge whether a
sleeping
quoted
process could be waken up or not when wake_up() is executed in other processes or interrupt handlers. What really wakes the process up is
still
quoted
the function of wake_up, right? We just execute wake_up() and then
check if
quoted
condition is true. If yes, the process will leave its sleeping and wake
up;
quoted
if not, it keep sleeping. Am I right?Right. Domen
_________________________________________________________________ 免费下载 MSN Explorer: http://explorer.msn.com/lccn/