Firstable, I really need to thank you for your immediate replies!! It really helps
alot!
First, to ask perhaps a really simple questions, the get/set methods, to make them synchronized, all I have to do is add the keyword "synchonized" at their heading and that'll ensure synchronization between different thread access/modify them? So what happens when a thread tries to access a block that is locked by other already? Does it just wait, till it can enter it?
Then, 2nd questions is, notice I am trying to do TimeStamps, however, when I do System.currentTimeMillis(), I realize some values are 1xxxxxxxxxx while others could be 4xxxxxxxxxx or 3xxxxxxxxx ....etc. I thought the System.currentTimeMillis() function returns the number of seconds elapsed since Jan 1970...somethin along that line?
When I test that function back to back, like call:
System.currentTime().
sleep(5),
System.currentTime().
I can see that it gives me a somewhat accurate value. However, when I call it at different machines (because this is a Pnt2Pnt model) the TimeStamp at the other end maybe be 4xxxxxxxxx whiel the TimeStamp at this end is 1xxxxxxxx, How can I compare the the TS of 2 seprate workstation, then?