1997Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: Just a bit of musing -->
<!--X-From-R13: ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO (Quevf Uenl) -->
<!--X-Date: from major.globecomm.net [207.51.48.5] by mx01.ca.us.ibm.net id 857842451.58696&#45;1 Sat Mar  8 17:34:11 1997 -->
<!--X-Message-Id: 9703081641.7uxg@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: Just a bit of musing</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="msg00079.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00081.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00079.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00086.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00080">Author</A>
&nbsp;|&nbsp;<A HREF="#00080">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00080">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: Just a bit of musing</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: Just a bit of musing</LI>
<LI><em>From</em>: <A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A> (Chris Gray)</LI>
<LI><em>Date</em>: Sat, 8 Mar 97 09:41:07 MST</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
:Seeing as most *nix'es don't implement fast RAM sempahores, this can get a
:little expensive at runtime if the contention rate gets high.

AIX has one, called 'cs' for "compare and swap". At work, we've done them
for SunOS, Solaris and HPUX too. Just use the appropriate locking
instructions in a spin-lock, with backoff to an OS call.

:Well, given an SMP machine, with an OS that will intelligently distributes
:threads -- that all semi happens for free with me (its not quite so good
:as I try to minimise thread creations, as few to no current OS'es will
:migrate a thread across processors for load sharing).

Huh? As far as I know, all SMP OS's will readily run a runnable thread
on whatever CPU is free in the SMP. Solaris, AIX4, HPUX all do this, and
I have no reason to believe any other wouldn't as well. Are you suggesting
that once a thread in a process has run on a given CPU, it is somehow
bound to that CPU for execution? If so, can you point me at some docs that
say this - it could be quite significant for us at work.

--
Chris Gray   cg#ami-cg,GraySage.Edmonton.AB.CA

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00079.html">Re: Just a bit of musing</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00081.html">mud grammar (was Re: Just a bit of musing)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00079.html">Re: Just a bit of musing</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00086.html">Re: Just a bit of musing</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00080"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00080"><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: Just a bit of musing</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00076" HREF="msg00076.html">Re: Just a bit of musing</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sat 08 Mar 1997, 14:00 GMT
</LI>
<LI><strong><A NAME="00077" HREF="msg00077.html">Re: Just a bit of musing</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#inficad,com">nightfall#inficad,com</a>, Sat 08 Mar 1997, 19:00 GMT
</LI>
<LI><strong><A NAME="00078" HREF="msg00078.html">Re: Just a bit of musing</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#inficad,com">nightfall#inficad,com</a>, Sat 08 Mar 1997, 19:10 GMT
</LI>
<LI><strong><A NAME="00079" HREF="msg00079.html">Re: Just a bit of musing</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#inficad,com">nightfall#inficad,com</a>, Sat 08 Mar 1997, 19:19 GMT
</LI>
<LI><strong><A NAME="00080" HREF="msg00080.html">Re: Just a bit of musing</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 09 Mar 1997, 01:34 GMT
</LI>
<LI><strong><A NAME="00086" HREF="msg00086.html">Re: Just a bit of musing</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 11 Mar 1997, 13:45 GMT
</LI>
<LI><strong><A NAME="00088" HREF="msg00088.html">Re: Just a bit of musing</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Wed 12 Mar 1997, 03:39 GMT
</LI>
<LI><strong><A NAME="00089" HREF="msg00089.html">Re: Just a bit of musing</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Wed 12 Mar 1997, 05:10 GMT
</LI>
<LI><strong><A NAME="00090" HREF="msg00090.html">Re: Just a bit of musing</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#inficad,com">nightfall#inficad,com</a>, Wed 12 Mar 1997, 12:38 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>