Original Post
Hi, i have a bunch of Java objects that are accesible to many players at a time (possibly hundreds per object). Many of these objects are writable so i decided to use synchronize on them to ensure thread safety. As the code isn't very dependent on speed, could it hurt to just make everything synchronized? As everything has to be executed anyway what difference does it make if i do them at the same time or just one at a time. I know there are some performance penalties associated with synchronized, but what performance penalties can i expect (especially for small functions like reading a string from an sql resultset), will it decrease by 2 percent or more like 50? Thanks!