Using a Thread-Local Variable : Collections Threads « Threads « Java
- Java
- Threads
- Collections Threads
Using a Thread-Local Variable
public class Main {
public static void main(String[] argv) throws Exception {
ThreadLocal localThread = new ThreadLocal();
Object o = localThread.get();
localThread.set(o);
}
}
Related examples in the same category