TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Joel Downer
from: Doug Nazar
date: 1996-02-18 10:36:59
subject: Remote Pipe Question...

Hello Joel!

Thursday February 15 1996 14:49, Joel Downer wrote to Doug Nazar:

JD> Doesn't OS/2 place a limit on the number of active threads?  If so, and
JD> given that some people might want to run very large BBS'es on an OS/2
JD> LAN (100+ nodes), couldn't there be some problems with this approach?
JD> I'm not aware that there's any reason that a 100-thread server process
JD> is *impossible*, but isn't that a log of resources to hog for one door?

The THREADS= config.sys parameter sets the maximum thread count (upto
4096). Each thread does comsume some resourses but anyone who can afford a
hundred-line bbs should be able to afford the memory .

JD> Forgive me if this is another dumb question... I make no claims to
JD> expertise here.   It sounds as if what I'd need to do to avoid
JD> piggishness (at very least) is have one "listener" thread
and then spawn
JD> a new thread for each actual "hit" (rather than spawning MaxNodes
JD> threads at startup).

This is another aproach. However, I should point out that a blocked thread
(in this case, blocked on DosConnectNPipe) uses no CPU time. The only
sluggishness would be do to swapping if they didn't have enough memory.

Doug

--- GoldED/2 2.50+
* Origin: Realm of the Dragons - `Where thy mind hath no limits' (1:250/516)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 250/516 101 99 3615/50 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.