Monday, October 31, 2005 12:18 AM
Thread T1 already executing the sync code by holding a lock on a perticular obj. and updated the shared values. Now this thread preempted, and the lock handovered to another thread T2 to execute the same sync method., it resets all the shared values with new values. it finished its execution and deads. now T1 wants to continue to execute from where it stoped.CAN T1 GET ITS ORIGINAL VALUES WHAT IT SUPPOSING?,if NOT wHAT IS THE USE OF SYNC. ?