[MUD-Dev] Sockets

Daniel Garcia dgarcia at hollyfeld.org
Wed May 12 02:11:49 CEST 1999


On Wed, 12 May 1999, Jon A. Lambert wrote:
> > So, I agree, that if you are programming under the WIN32
> > API, you will get better performance by using threads than if you
> > didn't, but *that is a result of the nature of the API, rather than any
> > inherent advantage of threads*.
> I KNOW that threading I/O  performs better on Win32.  
> The question is "Does threading I/O perform better on Linux/BSD?"
> If someone would ACTUALLY DO IT in Linux/BSD, perhaps the question could 
> be answered rather than theorized at.

I can't speak for linux, but I can speak for BeOS...  I took the CD mud
driver, threaded just the input handling.  We increased 10-fold the number
of simultaneous user connections (one of the guys that I work with has
a program that logs into the mud, and does commands and measures response
time) - and even then, that was because we hit a hardcoded limit in the
driver for number of simultaneous connections...

I'm redoing the threading code now, pondering the idea of using thread
pooling to cut down on the maximum number of threads the engine could
be using.  (Well, I _will_ be redoing the code, once I get BeOS back
up and running, just got a new dual cpu system, should be sweet :)

Cheers,

--Dg





_______________________________________________
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