MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
[MUD-Dev]
At 10:19 25.1.1999 -0500, Elis Pomales wrote:
> The current dilemma, is whether I should use threads on a per player
> (per socket) basis, or implement a polling loop and queue player
> commands,
I'm using the thread per player method.
>handling one command per player per loop cycle. The problem with having a
>thread per player is the context switching overhead. The problem with the
>polling loop is that I have to check each player to see if they have
>input. (There is no select() in Java.)
There are some statistics available on the web concerning heavily threaded
Java servers.
InfoWorld Labs tested an on-line stock trading system on different JVMs and
operating systems. Big Iron can handle a big bundle of transactions, PCs
did a little less.
<URL:http://www.infoworld.com/cgi-bin/displayTC.pl?/980914analysis.htm>
JavaWorld had the results of a VolanoMark test which is a stress test for a
chat server written in Java. Some JVMs managed to handle even 900
connections although if I read the tables right, at that point there was
only roughly 1 message getting through per thread per second.
<URL:http://www.javaworld.com/javaworld/jw-08-1998/jw-08-volanomark.html>
>PS. I would still use more threads, one for NPC's and one for the game
>world.
Nod.
>PSS. Is having 100+ threads really that bad? (I would think so)
Looking at these statistics it seems to me it's not necessarily a disaster.
--
Juha
- Thread context:
- [MUD-Dev] Re: combat, (continued)
- [MUD-Dev] ADMIN: Off-topic and the ever present reminders on quoting.,
J C Lawrence claw#under,engr.sgi.com, Wed 27 Jan 1999, 01:28 GMT
- [MUD-Dev] Stock Mud Demographics,
##Make Nylander thenewt#use,usit.net, Tue 26 Jan 1999, 17:21 GMT
- [MUD-Dev] exploration points,
diablo diablo#best,com, Tue 26 Jan 1999, 11:42 GMT
- [MUD-Dev],
Juha Lindfors jplindfo#cc,helsinki.fi, Tue 26 Jan 1999, 09:37 GMT
- [MUD-Dev] Re: Reset Death,
Quzah [softhome] quzah#softhome,net, Mon 25 Jan 1999, 23:41 GMT
- [MUD-Dev] Re: PvP and mob capacities (was "List Peerage"),
Caliban Tiresias Darklock caliban#darklock,com, Mon 25 Jan 1999, 21:36 GMT
- [MUD-Dev] Re: Who is? (was about level vs skills),
Caliban Tiresias Darklock caliban#darklock,com, Mon 25 Jan 1999, 21:24 GMT
[ Other Periods
| Other mailing lists
| Search
]