img
.
Appendix C. APIs
Function Descriptions
The Class java.lang.Thread
The Interface java.lang.Runnable
The Class java.lang.Object
The Class java.lang.ThreadLocal
The Class java.lang.ThreadGroup
Helper Classes from Our Extensions Library
The Class Extensions.InterruptibleThread
The Class Extensions.Semaphore
The Class Extensions.Mutex
The Class Extensions.ConditionVar
The Class Extensions.RWLock
The Class Extensions.Barrier
The Class Extensions.SingleBarrier
This appendix contains a very brief description of the Java threads API.
Function Descriptions
In the sample entry below, the method name comes first. Next are the method and argument list
(sometimes there'll be two methods shown, should they be very closely related). A short paragraph
describing the basic operation follows (it may well leave out some details). Next comes a
reference to the most applicable portion of the text. Finally, any comments that seem appropriate
are given.
start
public void start()
throws IllegalThreadStateException
Calling the start() method on an instance of Thread will cause the appropriate run() method
to execute in a new thread.
Chapter 4.
Reference:
The Class java.lang.Thread
The class Thread defines thread objects. When the start() method is called, an actual running
thread is created which the Thread object can control. It is important to distinguish between the
object (which is just memory and a set of methods) and the running thread (which executes code).
All static thread methods apply to the current thread.
Thread
public
Thread()
public
Thread(String name)
public
Thread(Runnable runObj)
public
Thread(Runnable runObj, String name)
Search WWH :
Custom Search
Previous Page
Multithreaded Programming with JAVA - Topic Index
Next Page
Multithreaded Programming with JAVA - Bookmarks
Home