wait_event() :(

From: M.Gopi Krishna (mgopi@csa.iisc.ernet.in)
Date: Wed Oct 03 2001 - 03:25:32 EST


I have a doubt regarding wait_event.
In the macro __wait_event, the calling process changes its state to
TASK_UNINTERRUPTIBLE and calls schedule.
And does this in infinite loop.
After the loop, it itself changes its state to TASK_RUNNING.

Once it calls schedule(), the scheduler will remove it from task list as
it is in uninterruptible mode.
Then when does it come again into running state to check the condition.

kindly cc the reply to me as i'm not subscribed to the list
thanks

-- 
gopi.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 07 2001 - 21:00:26 EST