Scalability of multi-threading in game server
Posted
by
Taylor Hill
on Game Development
See other posts from Game Development
or by Taylor Hill
Published on 2013-11-11T02:06:07Z
Indexed on
2013/11/11
16:18 UTC
Read the original article
Hit count: 186
What is a reasonable number of threads for a simple 2D mmo in Java? Is it reasonable to have two threads per connection, one for the input stream and one for the output stream?
The reason I ask is because I use a blocking method on the input stream, and a workaround seems unnecessarily complex if I were to try to get around it without adding threads.
This is mostly for my own edification; I don't expect to have 5 million people playing it ever, or even 5, but I'm wondering what a good scalable solution is, and if this is reasonable for a small server (<30 connections).
© Game Development or respective owner