Threads are the life in an applet. Some threads are created by the system, but others are started in the applet
Threads can be started to remove some of the burden from a system thread, or to start its own line of execution.
Many program languages (e.g. Ada and Java) have Concurrent processes in the language. These processes cannot
be implemented as separate UNIX processes since process switching takes to long time. If Ada processes are
implemented as threads, they can execute in parallel on a multiprocessor.Server processes need to await several
events at the same time. With the aid of threads, one can program such processes with clean sequential code and
blocking system calls.
|