wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Scheduling

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

Blockchain

Blog banner

Introduction my self

Blog banner

10 Interesting Facts about Death Note

Blog banner

File Management In OS

Blog banner

Different memory allocation strategies

Blog banner

Depression

Blog banner

Reclaim Your Bite and Beauty: All About Dental Restorative Treatments

Blog banner

Simple AI Symptom Diagnosis Using LISP – Rule-Based Expert System

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner

BENIFITS OF YOGA

Blog banner

MIDDLE CLASS MELODIES!!

Blog banner

Modern Operating Systems

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner

Threads and concurrency

Blog banner

Device driver

Blog banner

Importance of Education

Blog banner

Modern operating systems (OS)

Blog banner

POVERTY:Causes and solutions to problems

Blog banner

Service Operation

Blog banner

Disk Management

Blog banner

All you need to know about “Off-page SEO”

Blog banner

POSITIVE ATTITUDE IN LIFE

Blog banner

Zoho

Blog banner

Data is an asset and it is your responsibility!

Blog banner

Wedding photographer

Blog banner

Is Your Password Complex Enough?

Blog banner

Difference Between Classification And Clustering

Blog banner

Deadlocks

Blog banner

Place to visit in pune

Blog banner

The Lunchbox That Came Back Untouched — How to Handle a Fussy Eater at Preschool Age

Blog banner

Evolution of Operating system

Blog banner

GOOGLE

Blog banner

Technical Challenges and Directions for Digital Forensics

Blog banner

Article on Fresh Book

Blog banner

Analysis of Digital Evidence In Identity Theft Investigations

Blog banner

INTERNET

Blog banner

Visualization in Data Science

Blog banner

Linker

Blog banner

A Short History of GIS

Blog banner

Geographic Information Systems(By aditi Unnikrishnan)

Blog banner

Dal Bafla Recipe

Blog banner

Pilgrimage at LOC: A privilege and a paradox

Blog banner