From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: In-Reply-To: <20070813093107.GG13994@moe.telargo.com> From: "Ming Liu" To: domen.puncer@telargo.com Subject: Re: basic and stupid question on wait_event and wake_up Date: Mon, 13 Aug 2007 09:46:17 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Cc: Linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 >To: Ming Liu >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: > > Dear Momen, > > OK. I see now. So you mean condition is only to judge whether a sleeping > > 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 > > the function of wake_up, right? We just execute wake_up() and then check if > > condition is true. If yes, the process will leave its sleeping and wake up; > > if not, it keep sleeping. Am I right? > >Right. > > > Domen _________________________________________________________________ Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/