Thread - The smallest unit in a process execution
Multithreading - The process of executing multiple threads parallel or simultaneously.
Multiprocessing - The process of executing more than one program at the same time.
That is multitasking is a sub concept in multi programming where the smallest units called threads are executed at a time.
Difference between multithreading and multitasking
Multithreading
- It is a programming concept in which a program is divided sub-programs that are executed at the same time in parallel.
- It supports execution of multiple parts of a simple programe simultaneously.
- The processor has to switch between different parts of a programe.
- It is highly efficient.
- A thread is the smallest unit in multithreading
- It helps in developing efficient programs
- It is cost efficient in case of context switch
- A thread is a light weight process.
Multi programming
- It is an operating system concept in which multiple tasks are performed at the same time.
- It supports execution of multiple programs simultaneously.
- The processor has to switch between different programe
- It is less efficient in comparison to multithreading
- A program is the smallest efficient operating system
- It is inexpensive in case of context switch.
- A program is a heavy weighted component
0 comments :
Post a Comment
Note: only a member of this blog may post a comment.