Re: sockets and threads...
- From: "David Schwartz" <davids@xxxxxxxxxxxxx>
- Date: Thu, 5 Jan 2006 19:43:14 -0800
"barcaroller" <barcaroller@xxxxxxxxx> wrote in message
news:rajvf.41098$X25.917928@xxxxxxxxxxxxxxxxxxxxxxxx
> Are the socket commands (send, sendto, recv, revfrom, ...) on Linux 2.4
> thread-safe?
By what most people usually mean by "thread-safe", yes, they are.
However, all bets are off if you do any of the following:
1) Call 'close' on a socket in one thread while it is (or might be) used
in another thread.
2) Call 'send' from two threads on the same TCP socket.
DS
.
- Follow-Ups:
- Re: sockets and threads...
- From: shiva
- Re: sockets and threads...
- References:
- sockets and threads...
- From: barcaroller
- sockets and threads...
- Prev by Date: Re: Network Architecture Entry Point
- Next by Date: Re: sleeping and waiting and tasklets
- Previous by thread: sockets and threads...
- Next by thread: Re: sockets and threads...
- Index(es):