wake_up_interruptable() and wait_event_interruptable()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux