Sean M. Collins on 7 Mar 2011 14:46:19 -0800

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

Re: [PLUG] [OT] waiting for a socket/event vs. waiting for a socket/event

> Does a process wait for a socket/event or does a process wait on a
> socket/event?

Depends on the API you are using. I assume you are asking about blocking IO.

A process using accept() blocks on the call to read from the socket, and
the kernel does not schedule the process to run until the blocking call

So the usage of "waiting on" is imprecise, because it implies that the
process controls scheduling, which it does not.

Sean Collins
Core IT Pro, LLC
Philadelphia Linux Users Group         --
Announcements -
General Discussion  --