1998Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] request for comments (was: Mud&#45;Dev FAQ) -->
<!--X-From-R13: Hnqvz Fxnpuraxb <inqvzgN4pf.pbz> -->
<!--X-Date: Mon, 12 Jan 1998 16:30:05 +0000 -->
<!--X-Message-Id: 34BA448A.A4DFCA9#4cs,com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199801100338.TAA01149#under,Eng.Sun.COM -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] request for comments (was: Mud-Dev FAQ)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:vadimt#4cs,com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00210.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00212.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00167.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00077.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00211">Author</A>
&nbsp;|&nbsp;<A HREF="#00211">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00211">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] request for comments (was: Mud-Dev FAQ)</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] request for comments (was: Mud-Dev FAQ)</LI>
<LI><em>From</em>: Vadim Tkachenko &lt;<A HREF="mailto:vadimt#4cs,com">vadimt#4cs,com</A>&gt;</LI>
<LI><em>Date</em>: Mon, 12 Jan 1998 10:27:55 -0600</LI>
<LI><em>Sender</em>: <A HREF="mailto:vt#vadimt,4cs.com">vt#vadimt,4cs.com</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
JC Lawrence wrote:
&gt; 
&gt; On Thu, 8 Jan 1998 08:52:08 PST8PDT
&gt; s001gmu &lt;s001gmu#nova,wright.edu&gt; wrote:
&gt; 
&gt; &gt; heck, I could prolly pretty easily add a command to allow admin to
&gt; &gt; add some threads to the pool on the fly, but I prefer to minimize
&gt; &gt; the cost of thread creation, localizing it to a boot-time expense.
&gt; 
&gt; Notes: Thread creation is typically far cheaper than process
&gt; creation.  Threads can also be blocked.
&gt; 
&gt; I vary the thread pool size dynamically.  It grows under load, and
&gt; shrinks in time of extended drought.
&gt; 
&gt; The system is a little more complex than this as there is a minimum
&gt; thread count for the Event Pool, and if traffic falls enough that some
&gt; threads in the Event Pool are left work-less I block them instead of
&gt; killing them.  Thus, if traffic loads later increas and those threads
&gt; would be useful again, I merely unblock them for them to get back in
&gt; the fray.  The expense?  A little increased swap image and possibly a
&gt; slightly increased scheduler load depending on your system's thread
&gt; model.

I handle it in a different way - there's a concept of 'expensive
resource', usually it's a resource with a big startup latency - say,
database connection. Also, there may be a consideration of
'pay-per-minute' connection, so, in addition to abovementioned
min/max-spare there's one more value I forgot to mention: max idle time
for a resource. To be ignored when the number of spare connections is
about to fall below minSpare (which may be 0, too).

As for suspend vs. kill thread, I'm doing it in Java and well, don't
feel myself comfortable fiddling with buggy pieces of code :-) So I let
them die silently.

&gt; J C Lawrence

-- 
Still alive and smile stays on,
Vadim Tkachenko &lt;VadimT#4CS,Com&gt;
--
UNIX _is_ user friendly, he's just very picky about who his friends are

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00167" HREF="msg00167.html">Re: [MUD-Dev] request for comments (was: Mud-Dev FAQ)</A></STRONG>
<UL><LI><EM>From:</EM> JC Lawrence &lt;claw#under,Eng.Sun.COM&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00210.html">Event handling (was: request for comments)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00212.html">Re: [MUD-Dev] Event handling</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00167.html">Re: [MUD-Dev] request for comments (was: Mud-Dev FAQ)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00077.html">Re: [MUD-Dev] Mud-Dev FAQ</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00211"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00211"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Event handling (was: request for comments)</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00220" HREF="msg00220.html">Event handling (was: request for comments)</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Mon 12 Jan 1998, 22:12 GMT
</LI>
</ul>
</ul>
</ul>
</ul>
<LI><strong><A NAME="00169" HREF="msg00169.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></strong>, 
JC Lawrence <a href="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</a>, Sat 10 Jan 1998, 03:53 GMT
<UL>
<LI><strong><A NAME="00214" HREF="msg00214.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></strong>, 
Vadim Tkachenko <a href="mailto:vadimt#4cs,com">vadimt#4cs,com</a>, Mon 12 Jan 1998, 17:54 GMT
</LI>
</UL>
</LI>
</ul>
<LI><strong><A NAME="00167" HREF="msg00167.html">Re: [MUD-Dev] request for comments (was: Mud-Dev FAQ)</A></strong>, 
JC Lawrence <a href="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</a>, Sat 10 Jan 1998, 03:38 GMT
<UL>
<LI><strong><A NAME="00211" HREF="msg00211.html">Re: [MUD-Dev] request for comments (was: Mud-Dev FAQ)</A></strong>, 
Vadim Tkachenko <a href="mailto:vadimt#4cs,com">vadimt#4cs,com</a>, Mon 12 Jan 1998, 16:30 GMT
</LI>
</UL>
</LI>
</ul>
</ul>
<LI><strong><A NAME="00077" HREF="msg00077.html">Re: [MUD-Dev] Mud-Dev FAQ</A></strong>, 
JC Lawrence <a href="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</a>, Wed 07 Jan 1998, 00:39 GMT
</LI>
</ul>
<LI><strong><A NAME="00022" HREF="msg00022.html">Re: [MUD-Dev]  Mud-Dev FAQ</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#user2,inficad.com">nightfall#user2,inficad.com</a>, Sun 04 Jan 1998, 19:43 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00011" HREF="msg00011.html">Re: [MUD-Dev]  The impact of the web on muds</A></strong>, 
Mike Sellers <a href="mailto:mike#online-alchemy,com">mike#online-alchemy,com</a>, Fri 02 Jan 1998, 21:21 GMT
<UL>
<LI><strong><A NAME="00016" HREF="msg00016.html">Re: [MUD-Dev]  The impact of the web on muds</A></strong>, 
Marian Griffith <a href="mailto:gryphon#iaehv,nl">gryphon#iaehv,nl</a>, Sat 03 Jan 1998, 12:57 GMT
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>