When should one prefer ThreadLocal over synchronization, apart from for the performance improvement?

Viewed 2403

When should one prefer ThreadLocal over synchronization, apart from for the performance improvement? Please explain using a real life example.

4 Answers
Related