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?
Java Synchronisation
These articles may interest you:
SQL locks: http://www.sql.org/sql-database/postgre ... -lock.html
Thread safety with mySQL: http://dev.mysql.com/doc/refman/5.0/en/ ... ients.html
Database multi-threading: http://download.oracle.com/javase/1.3/d ... rame9.html
SQL locks: http://www.sql.org/sql-database/postgre ... -lock.html
Thread safety with mySQL: http://dev.mysql.com/doc/refman/5.0/en/ ... ients.html
Database multi-threading: http://download.oracle.com/javase/1.3/d ... rame9.html
Smartfox's forum is my daily newspaper.