- Home /
Question is off-topic or not relevant
How to create more than 2000 threads?
I am thinking to make server in unity3d but i have problem , i can not create more than 1000 thread in my system , i got error message "too many thread", I tried to build using 64 option but still the same.
Unless you have more than a 1000 cores, creating that many threads is not the way to go - it would run like a complete dog spending most of its time in thread switching.
so how to handle connections with more than 1000 concurrent users
Same as a web server? Stateless transactions, looks up the state as a request comes in and discards it afterwards. Unless your game is super simple it would require something huge in the server department or a cluster I would have thought.
Then I'd guess batching the processing for multiple players onto threads - so each thread process 100 or so.
Without knowing what your game is - I can't be specific.
This doesn't sound like it's in any way Unity specific, so I'm going to close this question. I'd suggest reading up on web servers, unless @whydoidoit is willing to keep walking you through the steps :)
Remember: this is not going to be an easy question with a simple answer. Setting up a web server to manage $$anonymous$$$$anonymous$$Os is very complicated.
Follow this Question
Related Questions
Terrain Menu is gone in the MenuBar. 3 Answers
Debug Console doesnt show up 7 Answers
Accessing CustomEditor Inspector values from another scene 0 Answers
Cloud recognition in Vuforia 0 Answers