Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: ittium Newsgroups: comp.lang.c++ Subject: Re: Non-deterministic behavior of multithreaded software Date: Tue, 09 Aug 2011 10:09:34 +0530 Organization: A noiseless patient Spider Lines: 19 Message-ID: <4E40BA06.1060303@gmail.com> References: <18caa0ec-2225-42a5-87cf-ffecc346b8c3@a2g2000prf.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="Jr+GCtWa+XbvmSdRpa1MLQ"; logging-data="6394"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CTrbFixX4XyIwu65V3GqV" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: Cancel-Lock: sha1:U4dlmSZDG5+sUtrdBEeG3eYn4uE= Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:8572 On 06-08-2011 PM 01:08, Jorgen Grahn wrote: > On Fri, 2011-08-05, itt ium wrote: > .... >> 2. Is it a bad idea to have multiple threads for the same fd. > > For doing the actual *reading*, or for processing the data once read? > >> If yes >> than how to increase capacity of a software that receives large amount >> of data on a single fd only. > > Impossible to say anything without knowing the specifics. We know (or > can guess) you do some kind of IPC, but that's all. There is no > single best design for all kinds of servers. > > And, it's completely offtopic here. My apologies, this was posted by mistake. You can ignore it.