[MUD-Dev] Two threads forced to one CPU? (was: Collecting ideas for a MUD server...)

cg at ami-cg.GraySage.Edmonton.AB.CA cg at ami-cg.GraySage.Edmonton.AB.CA
Fri Dec 24 07:44:05 CET 1999


[Greg Miller:]

> BTW: Here's something else anyone doing MT should be aware of: Your
> software may have two sets of thread bugs, one for single-CPU execution,
> and one for MP execution. There may or may not be overlap between the
> two. That means you *cannot* assume your MT application runs on both,
> unless you've tested and otherwise verified your code in both
> situations.

Excellent advice! At work, I've worked on threaded software on machines
with 1 2, and 4 CPU's, all on Windows NT. Bugs show up at all levels of
that, and some of them can be difficult to figure out, since they can be
timing dependent. You've got to be extremely careful with any locking,
etc. that you need. And, you've got to make *no* assumptions about
things getting done and the timing of them.

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

Chris Gray     cg at ami-cg.GraySage.Edmonton.AB.CA
               http://www.GraySage.Edmonton.AB.CA/cg/



_______________________________________________
MUD-Dev maillist  -  MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev



More information about the mud-dev-archive mailing list