Hi everyone,
My server have a "Zone Extention", and many "Room Extentions".
All of them run multi threads in Thread pools by default configuration.
Could i configure "Zone Extention" still run multi threads but "Room Extention" run with only single thread
Thank you so much!
How to config single thread for RoomExtention
Re: How to config single thread for RoomExtention
Hi,
I don't understand your question. Threads should not be a concern for you, the server handles them transparently for you.
Every Room or Zone Extension is called by one of the threads from a main thread pool, which is the optimal way to handle concurrent traffic. Using a fixed thread for a Room is neither useful nor beneficial for the overall performance of the system.
I would highly recommend to take a look at how threading works in SFS2X:
http://docs2x.smartfoxserver.com/Extens ... d-concepts
Keep in mind that since SFS2X 2.9 thread pools also feature an auto-balance system that allow to grow and shrink the thread pools depending on server load.
cheers
I don't understand your question. Threads should not be a concern for you, the server handles them transparently for you.
Every Room or Zone Extension is called by one of the threads from a main thread pool, which is the optimal way to handle concurrent traffic. Using a fixed thread for a Room is neither useful nor beneficial for the overall performance of the system.
I would highly recommend to take a look at how threading works in SFS2X:
http://docs2x.smartfoxserver.com/Extens ... d-concepts
Keep in mind that since SFS2X 2.9 thread pools also feature an auto-balance system that allow to grow and shrink the thread pools depending on server load.
cheers
Re: How to config single thread for RoomExtention
I will find another solution to resole my problem
Thank you very much @Lapo
Thank you very much @Lapo
Return to “Server Side Extension Development”
Who is online
Users browsing this forum: No registered users and 38 guests