|
|
|
|
|
|
|
|
|
|
|
|
|
|
ä |
Takes
less time to create a new thread
|
|
|
|
than a
process
|
|
|
ä |
Less
time to terminate a thread than a
|
|
|
|
process
|
|
|
ä |
Less
time to switch between two threads
|
|
|
within
the same process
|
|
|
ä |
Since
threads within the same process
|
|
|
|
share
memory and files, they can
|
|
|
|
communicate
with each other without
|
|
|
|
invoking
the kernel
|
|
|
ä |
Therefore
necessary to synchronize the
|
|
|
|
activities
of various threads so that they
|
|
|
|
do
not obtain inconsistent views of the
|
|
|
|
data
|
|