Wait on multiple wait queues

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

 



Hi all,
I am just curious to understand how poll,epoll,select works. After going through kernel source code.This is
what I understand,Please correct me if I am wrong :
A task can be added to multiple wait queues and later a wake up on any of wait queue will wake up the task.This is done do_select function which first sets the task state to TASK_INTERRUPTIBLE and then call each filp->poll function
which  inturn calls poll_wait  (which adds the task in a waitqueue )
---pgssgp




--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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