msg00149.html

2000Q1/msg00149.html · 7.3 KB

From the archive 2000Q1.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: RE: [MUD&#45;Dev] Question about multithreaded servers -->
<!--X-From-R13: ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO -->
<!--X-Date: Tue, 18 Jan 2000 21:33:42 &#45;0800 -->
<!--X-Message-Id: 200001190531.WAA15446@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, RE: [MUD-Dev] Question about multithreaded servers</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">
</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="msg00147.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00150.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00147.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00151.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00149">Author</A>
&nbsp;|&nbsp;<A HREF="#00149">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00149">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>RE: [MUD-Dev] Question about multithreaded servers</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: RE: [MUD-Dev] Question about multithreaded servers</LI>
<LI><em>From</em>: <A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A></LI>
<LI><em>Date</em>: Tue, 18 Jan 2000 22:31:50 -0700</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
[Greg Underwood:]

&gt; &gt;&gt; &gt; I suppose just by making a simple requirement that
&gt; &gt;&gt; &gt; all objects must be secured at the begining of the
&gt; &gt;&gt; &gt; script would take care of that.
&gt;
&gt; No, that's not true.  Just because you attempt to lock everything before
&gt; you execute the script doesn't mean you avoid deadlocks.  Deadlocks occur
&gt; when the following happens:
&gt;
&gt; 	Thread 1 - Get Lock 1 - ok
&gt; 	Thread 2 - Get Lock 2 - ok
&gt; 	Thread 1 - Get Lock 2 - block
&gt; 	Thread 2 - Get Lock 1 - block

Perhaps the original writer was assuming that all the locks are acquired
at once. An example of that is the SysV locking stuff in some versions of
UNIX. It's ugly as sin, but essentially allows you to do a whole mess of
lock operations all at once, atomically.

&gt; BTW, I had it realease the Locks in reverse order, simply to avoid minor
&gt; thrashing.

I hadn't thought of that - I'll have to go check the stuff at work. I
likely did it reverse order, just because it looks better to me, but
possibly not always. Thanks for the tip!


-- 
Don't design inefficiency in - it'll happen in the implementation.

Chris Gray     cg#ami-cg,GraySage.Edmonton.AB.CA
               <A  HREF="http://www.GraySage.Edmonton.AB.CA/cg/">http://www.GraySage.Edmonton.AB.CA/cg/</A>



_______________________________________________
MUD-Dev maillist  -  MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00151" HREF="msg00151.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw#kanga,nu&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00147.html">RE: [MUD-Dev] Question about multithreaded servers</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00150.html">Re: [MUD-Dev] How to handle/display partial language skill</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00147.html">RE: [MUD-Dev] Question about multithreaded servers</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00151.html">Re: [MUD-Dev] Question about multithreaded servers</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00149"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00149"><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>Re: [MUD-Dev] Question about multithreaded servers</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00243" HREF="msg00243.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Sun 30 Jan 2000, 21:27 GMT
</LI>
</ul>
</ul>
</ul>
<LI><strong><A NAME="00103" HREF="msg00103.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 17 Jan 2000, 09:02 GMT
<UL>
<LI><strong><A NAME="00129" HREF="msg00129.html">RE: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Fabian <a href="mailto:lemkef#execpc,com">lemkef#execpc,com</a>, Tue 18 Jan 2000, 20:51 GMT
<UL>
<LI><strong><A NAME="00147" HREF="msg00147.html">RE: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Greg Underwood <a href="mailto:gunderwood#donet,com">gunderwood#donet,com</a>, Wed 19 Jan 2000, 04:32 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00149" HREF="msg00149.html">RE: [MUD-Dev] Question about multithreaded servers</A></strong>, 
cg <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 19 Jan 2000, 05:33 GMT
<UL>
<LI><strong><A NAME="00151" HREF="msg00151.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Wed 19 Jan 2000, 05:48 GMT
<UL>
<LI><strong><A NAME="00178" HREF="msg00178.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Greg Underwood <a href="mailto:gunderwood#donet,com">gunderwood#donet,com</a>, Thu 20 Jan 2000, 05:59 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00249" HREF="msg00249.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Emil Eifrém <a href="mailto:emil#windh,com">emil#windh,com</a>, Mon 31 Jan 2000, 17:29 GMT
<UL>
<LI><strong><A NAME="00251" HREF="msg00251.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Mon 31 Jan 2000, 18:09 GMT
</LI>
</UL>
</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>

Site Stats

Snippets: 1791
Codebases: 571