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

The Role of Fibre in Everyday Nutrition and Digestive Health

Blog banner

The Role of Cyber Forensics in Addressing Cyber security Challenges in Smart Cities

Blog banner

Apache Spark :- Powerful Data Processing Tool

Blog banner

Linux Threads:

Blog banner

A Tourist’s Guide To Florida’s Rodeo Culture: What To Expect At The Arcadia Championship Rodeo

Blog banner

Building a Simple Doctor Appointment System in Common Lisp

Blog banner

Ghee vs. Coconut Oil vs. Mustard Oil: Which Cooking Fat Wins for Indian Food?

Blog banner

Fashion marketing in india

Blog banner

Importance of Morning Routines for Students During the Festive Season

Blog banner

Understanding Regression Analysis

Blog banner

SEIZING DIGITL EVIDENCE AT THE SCENE

Blog banner

Direct Memory Access

Blog banner

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

Blog banner

Service transition principles

Blog banner

Windows Operating System

Blog banner

Elements and Principles of Photography

Blog banner

How Unstructured Play Helps Children Become Creative Thinkers

Blog banner

Deadlock and Starvation

Blog banner

Top 5 Tech Innovations of 2018

Blog banner

Some facts about Technology

Blog banner

A Deep Dive

Blog banner

Social engineering in cyber security

Blog banner

Uniprocessor Scheduling

Blog banner

MEMORY MANAGEMENT (techniques)

Blog banner

Starvation and Deadlock.

Blog banner

Assignment 2

Blog banner

From Airboat Tours to Fossil Hunting: The Ultimate Arcadia Travel Experience

Blog banner

A Brief Review on Cyber Forensics and its Analysis Tool

Blog banner

Stephen Hawking : A Remarkable Physicist

Blog banner

“CONSISTENCY” in Social Media Marketing

Blog banner

Memory Management in Operating System

Blog banner

Steganography

Blog banner

Explain website hacking issues

Blog banner

IS CONVERTING AMBITION INTO PROFESSION?

Blog banner

File management

Blog banner

A-B-C of Networking: Part-2 (Components)

Blog banner

MAJOR ACHIEVEMENTS OF OS

Blog banner

Health is Wealth

Blog banner

Mutual exclusion

Blog banner

OS Assignment 3

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 2

Blog banner

Mesh Topology

Blog banner