Java threading
Java threading
Thread
Multitasking & Multithreading
• Multitasking allows several activities to occur
concurrently on the computer
• A multithreaded program contains two or more parts
that can run concurrently
– Each part of such a program is called a thread
– Each thread defines a separate path of execution
• Multithreading is a specialized form of multitasking