Multithreading works at a program level, while multitasking is at OS level which allows multiple programs.
Table of contents
Not a member, knowledge doesn’t have boundaries click to link
Multithreading
- The threads that we create in our application to perform multiple tasks, independent to each other is called multithreading.
- Multithreading is at program or application level because multiple threads are created in program and that threads get CPU time and resources to execute it.
- To understand multithreading in more detail I have added a link at the ending of this article.
Multitasking
- Multitasking is the ability of an operating system to perform multiple task or processes concurrently.
- Our application is not only the one executed on the computer, they would be other applications running as well.
- Now that multiple applications are executed on our computer, OS needs to decide how to distribute the resources and CPU time equally to all the threads of respective programs or application to be executed on your computer and make concurrent progress.