How to config single thread for RoomExtention

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

balamost
Posts: 9
Joined: 08 May 2017, 10:29

How to config single thread for RoomExtention

Postby balamost » 08 May 2017, 10:47

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!
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to config single thread for RoomExtention

Postby Lapo » 08 May 2017, 14:20

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
Lapo
--
gotoAndPlay()
...addicted to flash games
balamost
Posts: 9
Joined: 08 May 2017, 10:29

Re: How to config single thread for RoomExtention

Postby balamost » 09 May 2017, 01:34

I will find another solution to resole my problem

Thank you very much @Lapo

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 28 guests