Sockets question.

Eric Norum eric.norum at
Fri Jan 12 14:44:38 UTC 2001

Sergei Organov wrote:
> Could somebody please enlighten me.
> Is it safe to write to a socket from one thread and read from the same socket
> from another thread without guards?
> Sergei.
As far as I know, the answer is yes.  There are separate structures for
blocking on the receive and transmit queues.  The network mutex should
take care of the rest.
Eric Norum                                 eric.norum at
Department of Electrical Engineering       Phone: (306) 966-5394
University of Saskatchewan                 FAX:   (306) 966-5407
Saskatoon, Canada.

More information about the users mailing list