Explicit Threads
Your have seen multithreaded programs
- You can scroll your browser while an applet runs
- This indicates that the browser is multithreaded
Multithreaded applications contains separate and distinct subtasks.
- One thread can be used for each subtask
Single-threaded programs can do the tasks sequentially, of course
- Multi-threading can improve performance