|
|
|
|
|
|
|
|
|
|
|
n |
Example: a
file server on a LAN
|
|
|
n |
It needs to
handle several file requests
|
|
|
over a short
period
|
|
|
n |
Hence more
efficient to create (and
|
|
|
|
destroy) a
single thread for each request
|
|
|
n |
On a SMP
machine: multiple threads can
|
|
|
possibly be
executing simultaneously on
|
|
different
processors
|
|
|
n |
Example 2:
one thread display menu and
|
|
|
read user
input while the other thread
|
|
|
execute user
commands
|
|