[Mono-dev] Thread safety of System.Net.Sockets.Socket
robertj at gmx.net
Sat Jan 31 08:10:21 EST 2009
> Hi guys, I have little question: MSDN documentation tells that any
> instance member of Socket class is thread-safe
> But according to Mono documentation
> Socket members is not thread-safe.
> Is it real? Should I synchronize Socket operations manually? (in
> particular I'm interesting in ReceiveFrom and SentTo methods on UDP socket).
The docs of MS.NET 1.1 state that the Socket class is not thread safe,
but in fact it is (in Mono and MS.NET). It looks like Mono's docs
were not updated.
Anyway, for best performance you should rather use
More information about the Mono-devel-list