Search This Blog

Tuesday, April 26, 2011

Java Date Format is not synchronized - Be carefull in Multi threading applications

JAVA Tips:

Date formats are not synchronized.

It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally.

Ref: http://download.oracle.com/javase/1.4.2/docs/api/java/text/DateFormat.html

No comments:

Post a Comment

Thanks for your comment, will revert as soon as we read it.

Popular Posts