JVM Languages
thread.txt
Associated article: Using Thread-Local Variables In Java
Tags: JVM Languages
Published source code accompanying the article by Tom White in which he examines Java's ThreadLocal class which provides a powerful, easy-to- use way to write efficient code that is safe for multi- threaded access. Also see THREAD.ZIP.
Using ThreadLocal Variables in Java
by Tom White
Listing One
import java.text.ParseException;
import java.util.Date;
public interface DateParser {
public Date parse(String text) throws ParseException;
}
Listing Two
import java.text.DateFormat;
import java.text.ParseException;
import java....


