[Home] [Groups] - Message: [Prev in Group] [Next in Group]
12184: Re: [MUD-Dev] Two threads forced to one CPU? (was: Collecting ideas for a MUD server...)
[Full Header] [Plain Text]
From: Greg Miller <gmiller@classic-games.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Wed, 29 Dec 1999 02:46:17 -0600
References: [1]
Organization: Kanga.Nu
cg@ami-cg.GraySage.Edmonton.AB.CA wrote:
> sometimes > 32 bits, these can work atomically. Unless you know the
> specifics, however, and want your software to not be readily portable to
> other CPU variants (even other I32's!), don't assume anything.
Indeed. If you're on win32, use the Interlocked...() family of functions
if you have a good reason to use static/global data. If you don't have
functions of that sort, write them--and be very aware of the high cost
of such functions, and the much higher cost of using mutexes to simulate
them.
--
http://www.classic-games.com/
Conspiracy theorists mistakenly assume others think before acting.
*** Please limit .sigs to four lines and avoid HTML mail or posts. ***
_______________________________________________
MUD-Dev maillist - MUD-Dev@kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev