CS4282/CS6282 Internet and Distributed Systems Programming
Doug Lea : Concurrent Programming in Java
notes on page 13, and 17
Thread Vocabularies:
1. A thread is a call sequence that executes "independently " of others, while at the same time possibly SHARING underlying system resources such as files, as well as accessing other objects constructed within the SAME program.
2. Every Thread is constructed as a member of a ThreadGroup, by default the same group as that of the Thread issuing the constructor for it. ThreadGroups nest in a tree-like fashion. When an object constructs a new ThreadGroup, it is nested under its current group.
3. The method getThreadGroup() returns the group of any thread. The ThreadGroup class in return supports method such as enumerate() that indicate which threads are currently in the group.
http://gee.cs.oswego.edu/dl/cpj/mechanics.html
Keine Kommentare:
Kommentar veröffentlichen