Article View: news.software.nntp
Article #39065Re: NNTP - building the ultimate server
From: Etienne
Date: Wed, 11 Aug 1999 00:00
Date: Wed, 11 Aug 1999 00:00
33 lines
2447 bytes
2447 bytes
Hi all Curt Welch a ๏ฟฝcrit : > toby.douglass@arm.com (Comrade Yum Yum) wrote: > > I couldn't agree more. I'm thinking about writing an NNTP server, and > > threading is an obviously sensible and useful programming method for > > servicing requests. If you agree with that, and use threads, the better > > your threads are, the better your service will be. And if you've no > > threads at all, you're either running single threaded (not viable, > > surely) or you're forced to start a full, heavyweight process for each > > request .... > > Not true at all. If you are on a single CPU machine, you are running a > single thread. It's only an issue of which way is best for scheduling all > the work to do (threads, vs processes, vs select loops, etc). Threads are > not the obvious best soulution at all. They are just one soultion which > has it's advantages and disadvantages. This is wrong. Once the new thread or the new process is created, then switching from one context to another is basically the same. But fork is quite a very heavy work, particularly when it is repeated for a high number of connection each second. And this is the same, with one or more processors ... So the point is not to know how many processors you have, but how long is the process of creating a new thread or a new process. Etienne
Technical Details
Message-ID:
<37B17055.89EBC5A0@nospam.fr>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<37a5671a.1475189546@news.ftech.net> <brad-0208991250220001@brad.techos.skynet.be> <37a87721.1479292265@news.ftech.net> <brad-0208991326230001@brad.techos.skynet.be> <yl672wcwjk.fsf@windlord.stanford.edu> <MPG.121a6f08bc803747989cab@news.earthlink.net> <19990810192829.214$8D@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <37B17055.89EBC5A0@nospam.fr> Subject: Re: NNTP - building the ultimate server Date: Wed, 11 Aug 1999 00:00:00 +0000 From: Etienne <etienne@nospam.fr> References: <37a5671a.1475189546@news.ftech.net> <brad-0208991250220001@brad.techos.skynet.be> <37a87721.1479292265@news.ftech.net> <brad-0208991326230001@brad.techos.skynet.be> <yl672wcwjk.fsf@windlord.stanford.edu> <MPG.121a6f08bc803747989cab@news.earthlink.net> <19990810192829.214$8D@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 511430340 Content-Transfer-Encoding: 8bit X-Accept-Language: fr Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@oleane.net X-Trace: minus.oleane.net 934375678 17525 194.3.234.167 (11 Aug 1999 12:47:58 GMT) Organization: Guest of OLEANE Mime-Version: 1.0 NNTP-Posting-Date: 11 Aug 1999 12:47:58 GMT Newsgroups: news.software.nntp