Need to synchronize Socket.send()?
BCS
ao at pathlink.com
Sun Aug 19 19:59:41 PDT 2007
Reply to Benjamin,
> Reply to Max,
>
>> Consider this threaded socket server:
>>
> [...]
>
>> Is Socket.send() synchronized, or do I need to synchronize it myself?
>>
> I'm no expert, but I'd guess
that you will
> not
need to syncroniz it
>, each thread will get it's own
> socket, so that shouldn't be a problem and I'd be surprised if
> Socket.send is not thread safe.
>
x-b
More information about the Digitalmars-d
mailing list