Messages in this thread | | | Date | Wed, 6 Jan 1999 19:54:05 +0100 (MET) | From | Gabor Kuti <> | Subject | Re: info about wake_up and interruptible_sleep_on (re: NFS over TCP) |
| |
> > Hi, > I've been investigating the NFS over TCP and I think I might have > the bug but just need to know something about wake_up and > interruptible_sleep_on, > > are wake_ups queued? > > i.e. if I do a wake_up and then enter an interruptible_sleep_on will it > wake up? or do I need to send another wake_up? I don't actually understand your question :)
but.. if a process wants to wait for some event to happen, then it call sleep_on or interruptible_sleep_on with the proper wait_queue. This two functions changes the current process state to the proper value and the calls schedule. They will be then removed from runqueue. These processes are waken up when the awaited event occurs (..and wake_up(waitqueue); is called there aswell..).. (some other running process does it).
My answer may not be proper tough..
Seasons \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ "One who has time to complain has time to submit patches." <chinese proverb> \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |