From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c22949b5ebf3505f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-10 01:57:48 PST From: "Tarjei T. Jensen" Newsgroups: comp.lang.ada References: Subject: Re: [OT] Two sockets questions MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Original-NNTP-Posting-Host: pc1.akermar.com Message-ID: <3ebcbefb$1@news.wineasy.se> X-Original-Trace: 10 May 2003 09:57:31 +0100, pc1.akermar.com X-Complaints-To: abuse@songnetworks.se NNTP-Posting-Host: news.wineasy.se X-Original-NNTP-Posting-Host: news.wineasy.se Date: 10 May 2003 09:57:37 +0100 X-Trace: wineasy!newsfeed.wineasy.se!news.sto.telegate.se 1052557057 news.wineasy.se (10 May 2003 09:57:37 +0100) X-Complaints-To: abuse@songnetworks.se Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!news-stoc.telia.net!news-stoa.telia.net!telia.net!wineasy!newsfeed.wineasy.se!news.sto.telegate.se!news.wineasy.se!not-for-mail Xref: archiver1.google.com comp.lang.ada:37140 Date: 2003-05-10T09:57:37+01:00 List-Id: "Jano" wrote > I'm a bit afraid of using so many (say two thousands) tasks (are they > really that light? What computer is necessary for that number? I have a > pretty decent one, but...) but really I haven't past experiences about > so many threads. However, as I've never seen an application so task > intensive, I've think that that is for some reason (my httpd apache uses > 253 and is the most I've seen). You should read up on recent best practices for socket programming. I think there has been some performance improvements due to better programming. I don't remember what is supposed to be the best way these days or I would have mentioned it. You might get a clue from reading about performance diffences between windows and Linux. I notice that the squid developers report that they have reduced CPU usage by using real time calls. greetings,