[MUD-Dev] Re: TECH: Distributed Muds

Jon Lambert tychomud at ix.netcom.com
Fri Apr 27 04:40:37 CEST 2001


Steven Fleischaker wrote:
 
> Is there some semi-optimal or conventional approach to handling this
> sort of thing?
 
As far as network strategies go the following article is pretty good: 

  http://www.cyberport.com/~tangent/programming/winsock/articles/io-strategies.html

> In Win-NT/2k is there an optimal way to halt a thread, pause N
> milliseconds in clock time, then pick it back up without bogging
> your thread down in endless calls to a time command?

I believe Sleep() and SleepEx() are the preferred means of doing this
from with a thread.

> I could design a control algorithm to track 1-second intervals but
> it strikes me as overkill.

> There are some amazingly nasty things I've managed to do in the past
> with binary trees and poorly synchronized threads.  Also, at least
> in Win-NT, there don't seem to be a lot of inexpensive, thread-safe
> databases.

Hrrm.. on the relational database front all of the major players I
know of are threadsafe.  Thread safety is based on the session model.
Only one thread is allowed per session.  And the number of concurrent
sessions allowed is crippled by the number of seat licenses you've
purchased.  But then I'm not sure what you mean by inexpensive.  :-P

--
--* Jon A. Lambert - TychoMUD        Email:jlsysinc at ix.netcom.com *--
--* Mud Server Developer's Page <http://tychomud.home.netcom.com> *--
--* If I had known it was harmless, I would have killed it myself.*--
  

_______________________________________________
MUD-Dev mailing list
MUD-Dev at kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev



More information about the mud-dev-archive mailing list