What is ThreadLocal in Java with Example

Tutorials Shared by the Internet Community

Advertisements


What is ThreadLocal in Java with Example

ThreadLocal is another way to obtain thread safety in Java. you can share expensive object as ThreadLocal to get benefit of multi-threading with reduc

Statistics

  • Total Hits - 31703

  • Total Votes - 118 votes

  • Vote Up - 52 votes

  • Vote Down - 66 votes

  • Domain - javarevisited.blogspot.sg

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2012-09-22 08:27:12

Description

ThreadLocal is another way to obtain thread safety in Java. you can share expensive object as ThreadLocal to get benefit of multi-threading with reduced contention.    More detail...


Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements