Doubt about sockets

Eric Norum wenorum at
Tue Jun 22 16:18:31 UTC 2010

You can read and write a socket from different threads.
Just don't have multiple threads trying to read at the same time or trying to write at the same time.

On Jun 22, 2010, at 9:03 AM, Vinu Rajashekhar wrote:

> From the networking documentation, it seems that one cannot
> share the same socket across threads/tasks for the same operation, like
> read or write.
> What is the exact problem if I use the same socket to write something
> across different threads, is data corruption the only problem? More specifically,
> if I have run a select call on a socket, and if I write something into the socket,
> from different threads, does the select wakeup for sure ?
> _______________________________________________
> rtems-users mailing list
> rtems-users at

Eric Norum
wenorum at

More information about the users mailing list