wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Scheduling

profile
Dhruvi Bhatt
Sep 09, 2024
0 Likes
0 Discussions
39 Reads

*Process Scheduling*


Process scheduling is the allocation of CPU time to processes. The OS scheduler selects a process from the ready queue and allocates the CPU to execute it.


*Scheduling Algorithms*


1. *First-Come-First-Served (FCFS)*: Processes are executed in the order they arrive in the ready queue.

2. *Shortest Job First (SJF)*: The shortest process is executed first.

3. *Priority Scheduling*: Processes are executed based on priority, with higher-priority processes running first.

4. *Round-Robin (RR)*: Each process is allocated a fixed time slice (time quantum) in a cyclic order.

5. *Multilevel Feedback Queue (MFQ)*: Multiple queues with different priorities; processes move between queues based on their behavior.


*Scheduling Criteria*


1. *CPU Utilization*: Maximize CPU usage to minimize idle time.

2. *Throughput*: Maximize the number of processes completed per unit time.

3. *Turnaround Time*: Minimize the time between process submission and completion.

4. *Response Time*: Minimize the time between process submission and first response.

5. *Fairness*: Ensure equal allocation of resources to processes.


*Scheduling Types*


1. *Preemptive Scheduling*: The OS can suspend a running process to allocate the CPU to another process.

2. *Non-Preemptive Scheduling*: The OS cannot suspend a running process; it must complete before another process runs.


*Scheduling Data Structures*


1. *Ready Queue*: Holds processes waiting for CPU allocation.

2. *Waiting Queue*: Holds processes waiting for I/O or other resources.

3. *Zombie Process*: A process that has completed execution but still holds system resources.


*Context Switching*


Context switching occurs when the OS switches the CPU from one process to another. It involves saving the current process's state and restoring the new process's state.



Comments ()


Sign in

Read Next

Sleep Matters: The Science Behind Toddler Naps

Blog banner

Water Resources are about to exhaust...

Blog banner

Toothache at night? What does this mean, and how to cope with it?

Blog banner

The Role of Summer Camps in Early Childhood Development

Blog banner

Service transition principles

Blog banner

bulk email software

Blog banner

Spyware

Blog banner

Buffering

Blog banner

Deadlock

Blog banner

Network Security Risks

Blog banner

Operating system

Blog banner

Disk scheduling

Blog banner

How to Plan a Week of Healthy Meals Without Stress

Blog banner

Deadlock

Blog banner

Importance Of Education.

Blog banner

POVERTY:Causes and solutions to problems

Blog banner

Financial Fraud Detection

Blog banner

10 Types of Friends in every friend group

Blog banner

Importance of modern technology era

Blog banner

10 Interesting Facts about Death Note

Blog banner

Race Condition in Operating Theatre

Blog banner

Ethical Hacking

Blog banner

Patola Outfits for the Modern Wardrobe: Reviving Indian Handloom in Style

Blog banner

GraphX:- A graph processing tool

Blog banner

SMARTSHEET MANAGEMENT SYSTEM

Blog banner

Sweet and Sour Mango Pickle (Gol Keri)

Blog banner

Starvation

Blog banner

Docker Framework

Blog banner

GUIDE TO GIS

Blog banner

Study of Sniffing Tools

Blog banner

Safeguarding Your Data: The Importance of Wireless Encryption

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

Scheduling in Operating Systems

Blog banner

26/11 The Black Day Of Mumbai

Blog banner

Sagar Parikrama

Blog banner

Multithreading in Operating System

Blog banner

Decision Tree: A Diagram Model

Blog banner

How to setup a professional looking business account on Instagram?

Blog banner

Python as a tool for Data science task & project

Blog banner

History of Money

Blog banner

MUTUAL EXCLUSION

Blog banner

Survey of Which Movies Types people are Prefer to Watch in India.

Blog banner