April 05
Prof. Ismael H. F. Santos -
ismael@tecgraf.puc-rio.br
2
Threading
n
Java doesn’t support the notion of forking
processes; how do we support concurrency?
–
Java was designed to support multi-
threading!
–
In server environments we can spawn new
threads
to handle each client
–
Thread groups
allow for collective control
of many threads