Java Synchronisation

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

Moderators: Lapo, Bax

Post Reply
Hygiliak
Posts: 8
Joined: 15 Apr 2011, 18:47

Java Synchronisation

Post by Hygiliak »

Hello There.
In order to properly synchronise acces to central data structures I did a brutal serialisation that I don't know if I can sustain under heavy load.
I synchronised my three concurrent threads (Extension Handler, Event Manager and Task Scheduler) on the same Lock. Therefore, when wither one of those is active, the others have to wait. Will the fact that all three threads make SQL calls have a negative impact on overall performance under heavy load?
Is this setup safe for a turn based game of approximately 1000 concurrent users?
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

Smartfox's forum is my daily newspaper.
Hygiliak
Posts: 8
Joined: 15 Apr 2011, 18:47

Post by Hygiliak »

Thanks for the tips.
I will make a dedicated thread that will handle sql commands, so the three threads will no longer have to wait for responses from the SQL server.
In this situation, can my Single Lock strategy for the three threads create problems in the long run?
Post Reply