msg00787.html

1999Q4/msg00787.html · 7.2 KB

From the archive 1999Q4.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Two threads forced to one CPU? (was: Collecting ideas for a MUD server...) -->
<!--X-From-R13: Vnaf&#45;Vraevx Egnresryqg <uufNpof.qgh.qx> -->
<!--X-Date: Tue, 28 Dec 1999 08:05:03 &#45;0800 -->
<!--X-Message-Id: Pine.SGI.3.95.991228101722.1779436B&#45;100000#genome,cbs.dtu.dk -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199912241444.HAA04877@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Two threads forced to one CPU? (was: Collecting </title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:hhs#cbs,dtu.dk">
</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="msg00786.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00788.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00782.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00788.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00787">Author</A>
&nbsp;|&nbsp;<A HREF="#00787">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00787">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Two threads forced to one CPU? (was: Collecting ideas for a MUD server...)</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] Two threads forced to one CPU? (was: Collecting ideas for a MUD server...)</LI>
<LI><em>From</em>: Hans-Henrik Staerfeldt &lt;<A HREF="mailto:hhs#cbs,dtu.dk">hhs#cbs,dtu.dk</A>&gt;</LI>
<LI><em>Date</em>: Tue, 28 Dec 1999 10:22:02 +0100 (MET)</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>
On Fri, 24 Dec 1999 cg#ami-cg,GraySage.Edmonton.AB.CA wrote:

&gt; [Greg Miller:]
&gt; 
&gt; &gt; BTW: Here's something else anyone doing MT should be aware of: Your
&gt; &gt; software may have two sets of thread bugs, one for single-CPU execution,
&gt; &gt; and one for MP execution. There may or may not be overlap between the
&gt; &gt; two. That means you *cannot* assume your MT application runs on both,
&gt; &gt; unless you've tested and otherwise verified your code in both
&gt; &gt; situations.
&gt; 
&gt; Excellent advice! At work, I've worked on threaded software on machines
&gt; with 1 2, and 4 CPU's, all on Windows NT. Bugs show up at all levels of
&gt; that, and some of them can be difficult to figure out, since they can be
&gt; timing dependent. You've got to be extremely careful with any locking,
&gt; etc. that you need. And, you've got to make *no* assumptions about
&gt; things getting done and the timing of them.
&gt; 

Yes, or keep assuming the worst possible. Assume that the thread can be 
interrupted, after you have written down 16 of 32 bit of any long word 
in the memory, making the 32-bit value non-valid, which is why you need
thread-safe system calls :-) I actually had this error, though on older 
hardware. 


Hans Henrik Stærfeldt   |    bombman#diku,dk    | work:  hhs#cbs,dtu.dk      |
address:                |___  +45 40383492    __|__       +45 45252425     __|
 Dybendalsvej 74 2. th, | Scientific programmer at Center for Biological     |
 2720 Vanløse, Danmark. |  Sequence Analysis, Technical University of Denmark|




_______________________________________________
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>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00782" HREF="msg00782.html">Re: [MUD-Dev] Two threads forced to one CPU? (was: Collecting ideas for a MUD server...)</A></STRONG>
<UL><LI><EM>From:</EM> cg#ami-cg,GraySage.Edmonton.AB.CA</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00786.html">Re[6]: [MUD-Dev] The grass is always greener in the other field</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00788.html">Re: [MUD-Dev] Two threads forced to one CPU? (was: Collecting ideas for a MUD server...)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00782.html">Re: [MUD-Dev] Two threads forced to one CPU? (was: Collecting ideas for a MUD server...)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00788.html">Re: [MUD-Dev] Two threads forced to one CPU? (was: Collecting ideas for a MUD server...)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00787"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00787"><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><A NAME="00782" HREF="msg00782.html">Re: [MUD-Dev] Two threads forced to one CPU? (was: Collecting ideas for a MUD server...)</A></strong>, 
cg <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 24 Dec 1999, 19:03 GMT
<UL>
<LI><strong><A NAME="00787" HREF="msg00787.html">Re: [MUD-Dev] Two threads forced to one CPU? (was: Collecting ideas for a MUD server...)</A></strong>, 
Hans-Henrik Staerfeldt <a href="mailto:hhs#cbs,dtu.dk">hhs#cbs,dtu.dk</a>, Tue 28 Dec 1999, 16:05 GMT
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00788" HREF="msg00788.html">Re: [MUD-Dev] Two threads forced to one CPU? (was: Collecting ideas for a MUD server...)</A></strong>, 
cg <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 28 Dec 1999, 17:44 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00770" HREF="msg00770.html">[MUD-Dev] Re: MUD-Dev digest, Vol 1 #237 - 9 msgs</A></strong>, 
Dr. Cat <a href="mailto:cat#realtime,net">cat#realtime,net</a>, Thu 23 Dec 1999, 17:13 GMT
<UL>
<LI><strong><A NAME="00783" HREF="msg00783.html">Re: [MUD-Dev] Re: MUD-Dev digest, Vol 1 #237 - 9 msgs</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Fri 24 Dec 1999, 20:13 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00747" HREF="msg00747.html">[MUD-Dev] Job Openings - Mud Engineering</A></strong>, 
Christopher Allen <a href="mailto:ChristopherA#Skotos,net">ChristopherA#Skotos,net</a>, Thu 23 Dec 1999, 01:53 GMT
</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