Day 01Part 21- Type of Operating system for gate computer science – Multi Tasking Operating system.

Day 01Part 21- Type of Operating system for gate computer science – Multi Tasking Operating system.

 Multi-Tasking Operating System – GATE Computer Science

A Multi-tasking Operating System is an OS that allows multiple processes (tasks) to run simultaneously by efficiently managing CPU time and system resources. It enables a computer to execute more than one program at the same time.

 What is a Multi-Tasking Operating System?

 A multi-tasking OS allows a user to run multiple applications at the same time. It achieves this by using CPU scheduling and context switching.

Example: Running a web browser, a media player, and a text editor simultaneously on a computer.

 Types of Multi-Tasking Operating Systems

1. Preemptive Multi-Tasking OS

  • The OS controls which task gets CPU time.
  • Uses time-sharing and CPU scheduling algorithms.
  • Example: Windows, Linux, macOS

Example: If a user is watching a video and an email arrives, the OS temporarily suspends the video to process the email notification.

2. Cooperative Multi-Tasking OS

  • Tasks voluntarily give up CPU control when they complete or wait for input.
  • Less efficient than preemptive multi-tasking.
  • Example: Older macOS versions, Windows 3.x

Example: In an old Windows system, if one program crashes, it could affect the entire system because tasks do not preempt each other.

 How Multi-Tasking Works?

Key Concepts Used in Multi-Tasking OS:

Context Switching – Saves the state of a running process and switches to another.
CPU Scheduling – Determines which process gets CPU time.
Process Synchronization – Manages multiple processes accessing shared resources.
Interrupt Handling – Manages system events efficiently.

 Advantages of Multi-Tasking OS

Efficient Resource Utilization – CPU and memory usage is optimized.
Better User Experience – Users can run multiple applications without waiting.
Faster Execution – Reduces idle CPU time.
Parallel Processing – Useful in real-time applications.

 Disadvantages of Multi-Tasking OS

High CPU Usage – Can slow down performance if too many tasks are running.
Complex Process Management – Requires advanced scheduling algorithms.
Security Issues – Multiple processes running together can cause vulnerabilities.

 Examples of Multi-Tasking Operating Systems

Windows – Supports preemptive multi-tasking.
Linux – Uses process scheduling for multi-tasking.
macOS – Uses UNIX-based multi-tasking.
Android & iOS – Mobile operating systems with multi-tasking features.

 Difference Between Multi-Tasking, Multi-Processing & Multi-Threading

Feature Multi-Tasking Multi-Processing Multi-Threading
Definition Runs multiple tasks (processes) at the same time Uses multiple CPUs to run processes Runs multiple threads within a process
CPU Requirement One CPU is enough Requires multiple CPUs Single CPU can handle multiple threads
Example Windows, Linux Server systems, Supercomputers Java applications, Web browsers

 Summary

 Multi-tasking OS allows running multiple applications simultaneously.
 It improves efficiency and user experience.
 Uses context switching, CPU scheduling, and interrupts to manage tasks.
 Found in Windows, Linux, macOS, Android, iOS.

Would you like GATE-level questions or more in-depth explanations?

Day 01Part 21- Type of Operating system for gate computer science – Multi Tasking Operating system.

Chapter 1 MULTI-TASKING SYSTEMS – I: RYMOS

OPERATING SYSTEMS – MIS

HANDOUT

Leave a Reply

Your email address will not be published. Required fields are marked *

error: