Howdy, I am wondering if there is another way out of this sticky situation. I have a file access class like many others that my Data class calls. Now I synchronize on the random acces file instance which is static to my fileaccess class and there is only one instance of my file access class the idea is so that one thread at a time plays with the raf and my file pointers dont go crazy .This will make the application perform badly since only one thread can do anything with the random access file ...Is there some other way of doing this...Please comment Subu
Jeroen T Wenting
posted 9 years ago
Just make sure the synchronised blocks are as small as possible.