What is ThreadLocal in Java with Example

Tutorials Shared by the Internet Community

Advertisements


Synopsis

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 - 15870

  • Total Votes - 98 votes

  • Vote Up - 42 votes

  • Vote Down - 56 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. ...


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

Advertisements