wait_event()\ wait_event_interruptible()\ wait_event_interruptible_timeout() and wake_up()

Greg KH greg at kroah.com
Mon Jul 29 13:28:46 EDT 2019


On Mon, Jul 29, 2019 at 10:48:57PM +0530, Muni Sekhar wrote:
> Hi All,
> 
> Let us assume that multiple processes are waiting on wait_event()\
> wait_event_interruptible()\ wait_event_interruptible_timeout(), which
> process gets woken up on calling wake_up()??
> 
> I presume wake_up() picks one process, but is there any algorithm to
> pick which process?

try it and see!  :)




More information about the Kernelnewbies mailing list