Threads number in MMO demo

Options
Eldar9x
edited August 2011 in Photon Server
Each Peer has within at least one IFiber implementation (ActionQueue, OperationQueue...). It turns out, that each client connection to the server adds a few more threads in an application (except, of course, threads inside the core of Photon). That is, for 100 connections on the server we get about 300 threads?

Thanks!

Comments

  • Tobias
    Options
    These are not real threads. The fibers are using the Thread Pool, so there are not 300 existing Threads but a few ones which will pick up the fibers to execute them.
    This scales well with the number of available CPU cores. DotNet 4 made great progress in terms of polling Threads. Make sure to use it on live systems.