lkml.org 
[lkml]   [2001]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From

Hi,
A process makes a system call. It will go into kernel mode. Now the code of this system call is as follows.
while (1)
{ receive message from remote node ();
process the message () ;
send reply back to the remote node () ;
}
Suppose 1st function requires a blocking operation. What happens to this process and other processes in the system?
Is it that this process goes in wait state in kernel mode and other process gets scheduled. When the required event occurs the blocked process wakes up and waits for its chance to get executed.
Thanking you,
Dinesh.




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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