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

I/O Buffering

Blog banner

Firewall / IDS Evasion Techniques

Blog banner

CBSE + International Thinking: How Indian Schools Are Producing World-Ready Students

Blog banner

RAID

Blog banner

Deadlocks in Operating System

Blog banner

Process Description

Blog banner

How to use open SSL for web server - browser communication

Blog banner

The New Rules of UI/UX Design Every Website Must Follow in 2026

Blog banner

Visualization in Data Science

Blog banner

Building a Better You: Fitness Tips and Inspiration.

Blog banner

Banaras

Blog banner

Security issues

Blog banner

Threads Concurrency: Mutual Exclusion and Synchronization

Blog banner

The Bold Digital Marketing Moves That Made Durex India’s Second-Largest Condom Brand

Blog banner

operating system

Blog banner

Why Festivals Are the Best Classrooms for Young Minds?

Blog banner

ProofHub

Blog banner

Note Taker App

Blog banner

Intrusion Detection System

Blog banner

This too shall pass

Blog banner

How Preschools Help Children Make Their First Friends

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

Recipe of Paneer Butter Masala

Blog banner

Concurrency:Deadlock and Starvation

Blog banner

Social Engineering Deceptions and Defenses

Blog banner

SQL Injection Techniques

Blog banner

10 Unsolved Mysteries all over the world

Blog banner

Annual Day Preparation for Toddlers: What Helps and What to Avoid

Blog banner

Fossil Hunting 101 at the Peace River, Arcadia, Florida, USA

Blog banner

What is Virtual Memory

Blog banner

WORKFRONT SOFTWARE

Blog banner

38_Exploring The Honeynet Project

Blog banner

Meal Maharaj — 3 CP, 5 CP, 8 CP. Same Love, Different Portions

Blog banner

Advanced Persistent Threats (APTs)

Blog banner

How to Avoid being a Victim of Cybercrime

Blog banner

Race Conditions

Blog banner

Electronic Evidence in Cyber Forensics

Blog banner

Article on Zoho Corporation

Blog banner

Starvation

Blog banner

Fault tolerance

Blog banner

Pandas Matrix Applications

Blog banner

Access management

Blog banner