Guys,
I am caching the record data in a hashtable and having synchronised blocks where I wait for the lock on this hashtable before creating or updating or deleting, in the corresponding methods.
Here I am synchronizing the method so that no other
thread changes the recNo or data or the lockCookie while a thread a executing this method.
I am wondering if this is acceptable (or looks dump??). Any suggestion is appreciated.
Thanks,
Muthaiah.
SCJP 1.6, SCJD, SCWCD, SCBCD.
Be nice to people on the way up cos, you'll need 'em on your way down - From somewhere I can't remember!