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

Are Social Media Paid Campaigns Worth It?

Blog banner

Cyber-crime Investigation and Future Directions

Blog banner

Cyber Forensics in a Ransomware Attack Recovery

Blog banner

Threads

Blog banner

What is 'Multi-core and Multi-threading' ?

Blog banner

Concurrency:Deadlock and Starvation

Blog banner

Threat management

Blog banner

Uniprocessor Scheduling

Blog banner

Buffer overflow

Blog banner

Virtual memory in Operating System

Blog banner

PHONE TECHNOLOGY

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

How I use google in my daily life

Blog banner

FRIENDSHIP

Blog banner

AN EVENT-BASED DIGITAL FORENSIC INVESTIGATION

Blog banner

Gamer life

Blog banner

Concurrency management in operating systems

Blog banner

Overcoming the bedtime brushing Battle with Dr. Roxanne Irani, Dentist in Maroubra

Blog banner

Body Image and Low Self Esteem: Understanding the Emotional Impact Beyond Appearance

Blog banner

Paging

Blog banner

Exploring Virtual Machines and Computer Forensic Validation Tools

Blog banner

Healthy Habits Children Learn at Preschool That Last a Lifetime

Blog banner

Technical Challenges and Directions for Digital Forensics

Blog banner

Processes : Process description and control

Blog banner

Binary Search Tree (BST) in Data Structure

Blog banner

Deadlock and starvation in operating system

Blog banner

Pink sauce pasta

Blog banner

A Heartfelt Act of Kindness

Blog banner

c

Blog banner

Things You Should Leave Behind In 2025, Whilst In 2026

Blog banner

Fault tolerance

Blog banner

Types of Viruses

Blog banner

Simple Ways of Avoiding Basic Mistakes in Smart Phone Security

Blog banner

Direct Memory Access

Blog banner

HUBSPOT

Blog banner

How can parents support a child’s mental health?

Blog banner

Virtual Machine's

Blog banner

What is Spyware?

Blog banner

Paid Email

Blog banner

15 Interesting Facts about India

Blog banner

VIRTUAL MACHINES

Blog banner

PERSONALITY DEVELOPMENT

Blog banner