Bahadir Balban <bahadir.balban@xxxxxxxxx> wrote:
Hi,
I am wondering,
if a process sleeps with wait_event_interruptable( sleepqueue, condition);
when it wakes up via another process issueing wake_up_interruptable(sleepqueue);
what is the role of the condition? Here, I am confused because my
logic is that there are two sources of triggering of the sleeping
process. The condition, and the wake_up call.
Could someone please clarify.
Thanks,
Bahadir
hi,
by issuing wake_up the process which has slept with wait_event_interruptible is put on the runqueue. But it has to satisfy the condition in order to stop waiting or else it will sleep again.chk src code things will get more details.
--girish
Yahoo! India Matrimony: Find your life partner online.