Re: Multithread safety
- From: "Eugene Gershnik" <gershnik@xxxxxxxxxxx>
- Date: Thu, 10 Nov 2005 02:54:24 -0800
Eugene Gershnik wrote:
>
> However, posting multiple reads from different threads is still a bad
> idea. Why would you want to do this?
Actually, thinking about it more, for many protocols it should be pretty
natural to post read requests immediately from the thread that waits on
completion status. In this case (assuming you have more than one thread in
the pool) you will end up posting reads simultaneously. So I guess the OS
kernel is probably written with this in mind. Also, looking at some old code
I have I actually can see myself doing it. ;-)
So I guess I'll take back the statement I made a few posts back. It should
be safe to *post* simultaneous reads/writes on an IOCP socket.
--
Eugene
http://www.gershnik.com
.
- Follow-Ups:
- Re: Multithread safety
- From: m
- Re: Multithread safety
- From: Nathan Evans
- Re: Multithread safety
- References:
- Multithread safety
- From: Mike Gleason Jr Couturier
- Re: Multithread safety
- From: Eugene Gershnik
- Re: Multithread safety
- From: Nathan Evans
- Re: Multithread safety
- From: Eugene Gershnik
- Re: Multithread safety
- From: Nathan Evans
- Re: Multithread safety
- From: Eugene Gershnik
- Multithread safety
- Prev by Date: Debian sendmail 8.13.4 oddities
- Next by Date: Re: Microsoft SDK DNS
- Previous by thread: Re: Multithread safety
- Next by thread: Re: Multithread safety
- Index(es):
Loading