Multitasking Operating System Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report Multitasking in operating systems allows multiple tasks to run in an concurrent (or interleaved) manner, enhancing system performance. Multiprogramming ensures that the CPU (a very fast device) is used by other processes when one process becomes busy with IO (very slow compared to CPU). Multitasking further enhances multiprograamming by allocating fixed slot to each process ready to execute. It mainly runs processes in round robin manner. We mainly try to make the best utilization of our main resource which is CPU (by allowing processes to run in an interleaved manner (one process gets CPU for a partial time and then other process gets CPU). Apart from CPU utilization, it also improves user experience as the system becomes more responsive and interactive, hence allows user to do multiple tasks. Multitasking Operating SystemTypes of Multi-Tasking Operating System1. Preemptive Multitasking Operating System In preemptive multitasking, the operating system can interrupt a running process and allocate the CPU to another process.The operating system decides how long a process should run before switching to another process.Preemption ensures that no single process monopolizes the CPU, improving system responsiveness.Examples include Windows 95, WindowsNT, Linux and UNIX-based operating systems.Advantages:Efficient CPU utilization by running multiple tasks concurrently.Better system responsiveness and user experience.Allows higher-priority processes to take precedence over lower-priority ones.Disadvantages:Context switching overhead, which can reduce performance.Complexity in process synchronization and management.Can lead to starvation if lower-priority processes are never allocated CPU time.2. Cooperative/Non-Preemptive Multitasking Operating SystemIn non-preemptive multitasking, also known as cooperative multitasking, the OS does not initiate context switching from one process to another.A context switch occurs only when processes voluntarily yield control or are logically blocked.Processes cooperate to allow multiple applications to run simultaneously, ensuring the system operates smoothly.Examples include older versions of Macintosh OS (8.0-9.2.2) and Windows 3.x.Advantages:Simpler to implement compared to preemptive multitasking.Lower overhead from context switching.Processes have more control over their execution.Disadvantages:Less efficient CPU utilization due to lack of automatic task switching.Risk of system unresponsiveness if a process fails to yield control.Difficult to manage real-time task priorities.For more details you can refer Difference between Preemptive and Cooperative Multitasking article.Components of Multi-Tasking Operating SystemTime Sharing: In this, many processes are allocated with resources of computer in respective time slots, processors time is shared with multiple processes.Context Switching: Context switching is a process of saving the context of one process and loading the context of another process. In simpler terms it is loading another process when the prior process has finished its execution.Multi-Threading: Multithreading is the ability of a program or an operating system to enable more than one user at a time without requiring multiple copies of the program running on the computer.Hardware Interrupt: When a process or an event requires urgent attention, hardware or software will signal with an interrupt. It informs the processor that a high-priority task has arisen that necessitates interrupting the running process.Process Scheduling: It is the operating system mechanism that allocates CPU time to processes based on scheduling algorithms.Process Synchronization: ensures coordinated access to shared resources, preventing conflicts between processes.Pros of Multi-Tasking Operating SystemMulti-Tasking Operating System is capable of executing multiple application simultaneously without slowing down the system.Each process is assigned specific length of time(i.e time sharing), hence a process does not have to wait for longer duration to utilize CPU. Starvation of process is not found in these operating system.A multitasking OS can effectively manage I/O devices, RAM, hard disks, CPUs and other computer resources.In Multi-Tasking Operating a user is capable of executing multiple programs at the same time, such as games, browser, MS Word and other services.Memory management is well-defined in multitasking operating systems. Because of this, the operating system does not grant any permission for unwanted apps to waste RAM.Cons of Multi-Tasking Operating SystemAs a single processor is executing multiple processes at the same time then there will be load on CPU and CPU may gets heat up.Computer system will be lagging if the processor is slow in Multi-Tasking Operating System while executing multiple programs simultaneously. Main memory(RAM) have to store multiple processes during multi tasking so there can be memory boundation if the main memory is overloaded. Comment More infoAdvertise with us D darkknight006 Follow Improve Article Tags : Operating Systems OS Basics Explore OS BasicsWhat is an Operating System?5 min readTypes of Operating Systems9 min readCommonly Used Operating System9 min readOperating System Services5 min readOperating Systems Structures9 min readBooting and Dual Booting of Operating System6 min readSystem Call9 min readProcess & ThreadsIntroduction of Process Management8 min readProcess Table and Process Control Block (PCB)6 min readProcess Schedulers in Operating System7 min readContext Switching in Operating System3 min readThread in Operating System4 min readCPU SchedulingCPU Scheduling in Operating Systems8 min readPreemptive and Non-Preemptive Scheduling3 min readMultiple-Processor Scheduling in Operating System8 min readThread Scheduling7 min readDeadlockIntroduction of Deadlock in Operating System11 min readBanker's Algorithm in Operating System8 min readWait For Graph Deadlock Detection in Distributed System5 min readDeadlock Prevention And Avoidance5 min readDeadlock Detection And Recovery6 min readDeadlock Ignorance in Operating System5 min readMemory & Disk ManagementMemory Management in Operating System7 min readFixed (or static) Partitioning in Operating System8 min readVariable (or Dynamic) Partitioning in Operating System4 min readPaging in Operating System8 min readSegmentation in Operating System4 min readPage Replacement Algorithms in Operating Systems7 min readFile Systems in Operating System8 min readAdvanced OSMultithreading in OS - Different Models4 min readCompaction in Operating System3 min readBelady's Anomaly in Page Replacement Algorithms11 min readTechniques to handle Thrashing6 min readFree Space Management in Operating System7 min readRAID (Redundant Arrays of Independent Disks)13 min readPracticeLast Minute Notes â Operating Systems15+ min readOperating System Interview Questions15+ min readOperating Systems - GATE CSE Previous Year Questions2 min read Like