[Tinymux] Question on Semaphore

Mandor mandor at cox.net
Thu Aug 25 15:45:46 EDT 2005


At 04:34 AM 8/25/2005, you wrote:
>The real problem with that (I assume you heavily use side-effects as
>command replacements) comes when it gets used on a large scale across
>the majority of code of the MU*. I've seen a 700Mhz Xeon get driven to
>90% CPU usage on an almost constant basis by a MU* relying mostly on
>sideeffects. And not much was in the @ps, it's just that almost all
>code used them. Basically, what the MU* would put on the command queue
>and distribute evenly gets crammed up the CPU in a single queue entry.
>Only use that method when really, really necessary..which it usually
>isn't if some more time gets spent on finding a multi- at command
>solution.

        Well, I avoid side-effect functions as a rule, but I'm not going to sweat it in character generation code (which is what I'm working on).  It's definitely not code that will be used all the time.  Sounds like whoever did that game really pumped stuff on, too.  Ow. 


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.14/79 - Release Date: 8/22/2005




More information about the Tinymux mailing list