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

Importance of Education

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

Multithreading in Operating System

Blog banner

objectives and function of operating system

Blog banner

Why Makhana Is Becoming India’s Favourite Healthy Snack?

Blog banner

Virtual Machine

Blog banner

Shoulders

Blog banner

Place to visit in pune

Blog banner

“CONSISTENCY” in Social Media Marketing

Blog banner

An Approach To Spyware Detection And Removal

Blog banner

Deadlock in Operating System

Blog banner

How Laughing Gas Makes Your Dental Visit So Much Easier

Blog banner

10 Reasons Why Guy BestFriends are the Must in Every Girl's Life

Blog banner

Atlantis - The Lost Island.........

Blog banner

Software

Blog banner

SPAM

Blog banner

6 Digital Marketing Trends You Must Watch Out For In 2022

Blog banner

Eating Well With Meal Maharaj on Busy Workdays Without Cooking

Blog banner

How to Run your First android App

Blog banner

What is OS Fingerprinting?

Blog banner

Spyware

Blog banner

What do you mean by online marketing and why do you need to know about it

Blog banner

Assignment-3

Blog banner

Types of threads

Blog banner

Building a Simple Doctor Appointment System in Common Lisp

Blog banner

BharatPe

Blog banner

Use case of K-means clustering

Blog banner

Semaphores

Blog banner

How To Implement Search Engine Marketing (Sem) Strategy Effectively

Blog banner

MEMORY FORENSIC ACQUISITION AND ANALYSISOF MEMORY AND ITS TOOLS COMPARISON

Blog banner

VIRTUAL MACHINE

Blog banner

How Traditional Indian Foods Can Support a Modern Lifestyle

Blog banner

RAID

Blog banner

Exploring Virtual Machines and Computer Forensic Validation Tools

Blog banner

Self-love: Being the reason of your own smile

Blog banner

Emotional Intelligence in Children: Why It Is as Important as Academics

Blog banner

Reconnaissance

Blog banner

How to invest in Indian Stock Market ? ~ Tutorial 1

Blog banner

File Management

Blog banner

Worms, viruses and Bots

Blog banner

The Psychology of Diversity, Equity & Inclusion: How Inclusive Workplaces Boost Productivity

Blog banner

Docker Framework

Blog banner