wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Scheduling

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

RAID

Blog banner

Interesting fact about kangaroo.

Blog banner

Blockchain uses and use cases

Blog banner

Deadlock and Starvation

Blog banner

Understanding Regression Analysis

Blog banner

What Makes Patola the Queen of Silk?

Blog banner

Memory input output management

Blog banner

How to feel Happy everyday day

Blog banner

MEMORY MANAGEMENT

Blog banner

Music is life

Blog banner

Predictive Analysis - Ek Overview

Blog banner

WINDOWS I/ O

Blog banner

Cache Memory

Blog banner

RAID - LEVELS OF RAID

Blog banner

Supervised and Unsupervised Learning

Blog banner

Revolutionary AI Tool: ChatGPT

Blog banner

Constrains in service design

Blog banner

EMAIL INVESTIGATION

Blog banner

"Life as a Part-time Student"

Blog banner

Are Social Media Paid Campaigns Worth It?

Blog banner

DISK SCHEDULING

Blog banner

Modern Operating system

Blog banner

Love is in air.....

Blog banner

My Favorite Country

Blog banner

SWEET SHREDDED MANGO CHUNDA (MANGO CHUNDA)

Blog banner

Mumbaicha Dabbawalla

Blog banner

I/O Management and Disk Scheduling

Blog banner

THE ACTORS LIFE

Blog banner

Memory managment

Blog banner

Yoga in INDIA and ABROAD

Blog banner

10 Interesting Facts about Death Note

Blog banner

Processes : Process description and control

Blog banner

Virtual memory in os

Blog banner

Dal Bafla Recipe

Blog banner

Latest Email Marketing Techniques

Blog banner

Direct Memory Access

Blog banner

10 Interesting Facts about Attack on Titan

Blog banner

Self-love: Being the reason of your own smile

Blog banner

Retiring ISS

Blog banner

Modern Operating Systems.

Blog banner

Internet of Things and cyber security

Blog banner

Data Warehouse Bus Matrix

Blog banner