Object Oriented Programming: Unit III: Exception Handling and Multithreading

Basic Concepts of Thread

Object Oriented Programming

One of the exciting features of Windows operating system is that - It allows the user to handle multiple tasks together. This facility in Windows operating system is called multitasking.

Basic Concepts of Thread

What is Thread ?

• One of the exciting features of Windows operating system is that - It allows the user to handle multiple tasks together. This facility in Windows operating system is called multitasking.

• In Java we can write the programs that perform multitasking using the multithreading concept. Thus Java allows to have multiple control flows in a single program by means of multithreading.

• Definition of thread Thread is a tiny program running continuously. It is sometimes called as light-weight process. But there lies differences between thread and process.

Difference between Multithreading and Multitasking

Review Question

1.What is thread? Explain multithreading and multitasking in detail. 

Object Oriented Programming: Unit III: Exception Handling and Multithreading : Tag: : Object Oriented Programming - Basic Concepts of Thread