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

Bharath Vedartham linux.bhar at gmail.com
Mon Jul 29 14:01:23 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?
> 
> 
> -- 
> Thanks,
> Sekhar
Sorry to spoil the fun here. But check out what the queue data structure
is all about. 'wait_queue' :)

Thank you
Bharath
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



More information about the Kernelnewbies mailing list