lkml.org 
[lkml]   [1999]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.037 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site