wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Scheduling

profile
Dhruvi Bhatt
Sep 09, 2024
0 Likes
0 Discussions
65 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

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

Blog banner

Social Engineering Attacks

Blog banner

Use case of K-means clustering

Blog banner

LiquidPlanner

Blog banner

Uber

Blog banner

Firewall

Blog banner

Short-Form Video Marketing: Why It's Dominating the Internet

Blog banner

Define Instagram.

Blog banner

Social Engineering Deceptions and Defenses

Blog banner

10 Signs That Prove YOU are his FIRST priority.

Blog banner

How to write a cover letter

Blog banner

Veg/Non-veg/Egg Tiffin Meals That Are Nutritious and Filling

Blog banner

THE LEGAL ISSUES OF COMPUTER FORENSICS IN INDIA

Blog banner

Elements and Principles of Photography

Blog banner

Explain the concept of ( MIS) Management information systems

Blog banner

OS Assignment 3

Blog banner

Travelling blog

Blog banner

E-Governance

Blog banner

Biometric Authentication Vulnerabilities

Blog banner

Process in OS

Blog banner

HR Automation : Need of the hour

Blog banner

Rapido

Blog banner

Pooja Silver

Blog banner

Beyond the Track: Why the Best Hotel in Arcadia, Florida, Completes Your IMSA Sebring Getaway

Blog banner

 " Healing of Yoga "

Blog banner

Challenges and risks in service operations

Blog banner

Exploring Arcadia’s Cowboy Culture, Peace River & Hidden Attractions

Blog banner

SESSION HIJACKING

Blog banner

Synchronization

Blog banner

Service Design Principles

Blog banner

Juveniles, Internet and Computer Crime

Blog banner

CyberSecurity Color Wheel

Blog banner

NodeJs

Blog banner

Network Forensics

Blog banner

World’s rarest passport owned by 500 people.

Blog banner

Why You Should Not Use Free VPNs

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

Crypto tax evasion

Blog banner

Deadlock in Operating System

Blog banner

Zero Trust Security Model: Revolutionizing Cybersecurity in the Digital Age

Blog banner

This School Year, Let Their Belongings Come Back Home Too with Our Ultimate Labelling Kit

Blog banner

Zero-Click Searches: How To Stay Visible In Google’s New Era

Blog banner