BEA 8.1 Certified Administrator, IBM Certified Solution Developer For XML 1.1 and Related Technologies, SCJP, SCWCD, SCBCD, SCDJWS, SCJD, SCEA,
Oracle Certified Master Java EE 5 Enterprise Architect
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
Originally posted by damu liu:
hi,
in fact, there is a synchronized block in my code, which synchronized with lockMap. then when a client is putting a lock into the lockMap, the other can't put a lock in. I have a new idea: it will be better if the HashMap is a threadsafe Map.
Regards,
Damu
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Don't get me started about those stupid light bulbs. |