

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Difference Between Multitasking and Multithreading in OS
In this post, we will understand the difference between multitasking and multithreading in an operating system −
Multitasking
In this process, the users are allowed to perform multiple tasks by CPU.
It involves CPU switching between tasks.
The processes share separate memory locations.
It involves multiprocessing.
The CPU is provided to execute many tasks at a time.
The processes don’t share the same resources.
Every process is assigned its own resources.
It is slow in comparison to multithreading.
The process of termination takes more time.
This is how Multi-tasking looks like −
Multithreading
Multiple threads are created from a process.
Due to this, the power of computer is increased.
It involves CPU switching between the threads.
The processes are allocated same memory.
It doesn’t involve multiprocessing.
The CPU is provided so that multiple threads can be executed at a specific time.
Every process shares the same set of resources with each other.
It is fast.
The process of thread termination takes less time.
A multi-threaded process looks like the following −
- Related Questions & Answers
- Difference Between Multiprogramming and Multitasking
- Difference between Multiprocessing and Multithreading
- Difference between Network OS and Distributed OS
- Difference Between Paging and Swapping in OS
- Difference Between Deadlock and Starvation in OS
- Difference Between Semaphore and Monitor in OS
- Difference Between Buffering and Caching in OS
- Difference Between Interrupt and Polling in OS
- Difference Between Paging and Segmentation in OS
- Difference Between Spooling and Buffering in OS
- What is a multithreading model in OS?
- Differentiate between multiprogramming, multitasking and multiprocessing.
- Difference Between Virtual and Cache Memory in OS
- Difference Between Preemptive and Non-Preemptive Scheduling in OS
- Difference Between Long-Term and Short-Term Scheduler in OS