Hi guys,
I am not so experienced with java, I just managed to pass SCJP in december with lots of hard work and studying.
I would really appreciate your help.
My preparation for the SCJD exam was a meticilous reading of Thinking in Java,but I don't how to implement the locking access to the .db file.
I figured I should apply the Singleton Pattern to the Data.java class, synchronize all of it's methods and then create a new thread for each of the user's requests. These threads, get the single instance of Data.java and use it's methods.
This is just fine if my Data.java class is only on the server, but if it is on each of the user's computer, then there's an instance of the Data.java for each user, and they could make a mess of the .db file.
Do i need to worry about this in order to pass this exam?
If yes, could you please point me to the appropriate study materials?
I see that you guys are talking about a Lock manager and other threading concepts and patterns, an I am ashamed to say I have no idea what you talking about.
I am not so experienced with java, I just managed to pass SCJP in december with lots of hard work and studying.
I would really appreciate your help.
My preparation for the SCJD exam was a meticilous reading of Thinking in Java,but I don't how to implement the locking access to the .db file.
I figured I should apply the Singleton Pattern to the Data.java class, synchronize all of it's methods and then create a new thread for each of the user's requests. These threads, get the single instance of Data.java and use it's methods.
This is just fine if my Data.java class is only on the server, but if it is on each of the user's computer, then there's an instance of the Data.java for each user, and they could make a mess of the .db file.
Do i need to worry about this in order to pass this exam?
If yes, could you please point me to the appropriate study materials?
I see that you guys are talking about a Lock manager and other threading concepts and patterns, an I am ashamed to say I have no idea what you talking about.