Doubt about sockets

Vinu Rajashekhar vinutheraj at gmail.com
Tue Jun 22 16:21:54 UTC 2010


On Tue, Jun 22, 2010 at 9:48 PM, Eric Norum <wenorum at lbl.gov> wrote:

> 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.
>
>
Yes, what if that happens, I don't care about the data being transferred.
I just want to wakeup select using the socket, then ?


> 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 rtems.org
> > http://www.rtems.org/mailman/listinfo/rtems-users
>
> --
> Eric Norum
> wenorum at lbl.gov
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20100622/60cba51d/attachment-0001.html>


More information about the users mailing list