lkml.org 
[lkml]   [1998]   [Sep]   [24]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 23 Sep 1998 19:11:53 +0200
FromHenner Eisen <>
Subjectsocket read() vs. recv() serialization
Hi,

I realized that concurrent attempts to read() from a socket
are serialized by means of the socket's inode semaphore. But concurrent
calls of recv(), recvfrom(), or recvmsg() are not serialized. The same
holds for write() vs. send(), sendto(), or sendmsg().

Is this intentional or is it a bug (which might in theory cause some trouble,
i.e. when concurrent threads try to send() large chunks to the same socket)?

Henner 

-
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 12:44    [from the cache]
©2003-2008