🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #40612

Re: INN maxed? Time to add a Diablo router?

#40612
From: Chris Sedore
Date: Wed, 06 Oct 1999 00:00
29 lines
2193 bytes
Russ Allbery <rra@stanford.edu> wrote in message
news:yl1zb9pmx1.fsf@windlord.stanford.edu...
> Brad Knowles <brad@shub-internet.org> writes:
>
> > Speaking only for my totally ignorant self, I would assume that
> > threading with blocking I/O should also be sufficiently close to optimal
> > performance that I wouldn't think it would be necessary or desirable to
> > really go beyond this point.
>
> When I was trying to figure out how I would do this, one of the worries I
> had about threading with blocking I/O is that it feels like it would
> prevent you from doing an orderly shutdown of the entire news system in a
> bounded amount of time.  Or am I missing something?

You're not missing something.  This can be a problem, depending on what
you're doing and how you design the rest of the system.  If you keep state
in a thread independant way, you can simply prevent the threads from
accessing anything that you care about (like mmapped databases which are
being unmapped, etc), do your ordered shutdown in other threads, and then
exit().  Won't win you any awards for elegant programming, but there doesn't
have to be loss of state and it is quite a bit easier than trying to wait
for them all (or encouraging them) to complete or killing them off.

-Chris



Technical Details
Message-ID: <939222944428997625-1@dp-news.maxwell.syr.edu>
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
References: <foo-0210991412200001@192.168.2.3> <ylr9jbdsan.fsf@windlord.stanford.edu> <7tb517$bsu$1@newssvr02.news.prodigy.com> <ylpuyuakvk.fsf@windlord.stanford.edu> <37f94ee5$0$7742@news.execpc.com> <7tcv4u$te4$1@nnrp1.deja.com> <brad-0510991640350001@brad.techos.skynet.be> <yl1zb9pmx1.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <939222944428997625-1@dp-news.maxwell.syr.edu>
Subject: Re: INN maxed? Time to add a Diablo router?
Date: Wed, 06 Oct 1999 00:00:00 +0000
From: "Chris Sedore" <cmsedore@maxwell.syr.edu>
References: <foo-0210991412200001@192.168.2.3> <ylr9jbdsan.fsf@windlord.stanford.edu> <7tb517$bsu$1@newssvr02.news.prodigy.com> <ylpuyuakvk.fsf@windlord.stanford.edu> <37f94ee5$0$7742@news.execpc.com> <7tcv4u$te4$1@nnrp1.deja.com> <brad-0510991640350001@brad.techos.skynet.be> <yl1zb9pmx1.fsf@windlord.stanford.edu>
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: 533522672
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-MSMail-Priority: Normal
Newsgroups: news.software.nntp