Threads Section Index | Page 10
How do I have one thread wait for another thread to finish before continuing?
You can wait for a thread to finish by calling its join() method. For instance, in the following code, the current thread will wait until thread2 finishes before printing Done.
thread2.start();
/...more
Should I use the SingleThreadModel interface or provide explicit synchronization to make my JSP pages and servlets thread safe?
You can have a any servlet implement the SingleThreadModel interface. JSP
pages implement this in the background when you specify
<%@ page isThreadSafe="false" %>
Although the ...more
What exactly is the "Event Dispatch" thread (aka "AWT" Thread)?
When you run a GUI applet or application, the code in your main() method creates a GUI and sets up event handling. When you call setVisible(true) for your Frame, Window, Dialog, or when the browse...more