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

Deadlock in operating system

Blog banner

Modern operating systems (OS)

Blog banner

Ethical Hacking

Blog banner

Volatile Memory & Non-Volatile Memory Explained

Blog banner

Indian Food

Blog banner

Preparing Students for Higher Education: How International Schools Shape Future Success

Blog banner

Threads

Blog banner

INTRANET

Blog banner

Memory management

Blog banner

Why we should do reading

Blog banner

Strengthening Active Directory Security

Blog banner

GIS Mapping

Blog banner

PERSONAL STORIES

Blog banner

Dal Bafla Recipe

Blog banner

Multiple processor scheduling

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

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

Blog banner

Bitcoin sent using radio waves! No internet!

Blog banner

american greatines

Blog banner

Flipkart

Blog banner

Modern Operating System - Khush bagaria

Blog banner

Metasploit

Blog banner

Pooja Silver

Blog banner

IoT Architecture Based Security

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

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

Blog banner

LTE Technology

Blog banner

Kernel Memory Allocation In Linux.

Blog banner

Yoga in INDIA and ABROAD

Blog banner

The Importance of Eating on Time: How Meal Timing Affects Your Health

Blog banner

Cherish the Craft — Essential Tips to Maintain Your Patola Collection

Blog banner

Virtual Machine

Blog banner

Service Transition Process in ITSM

Blog banner

ROLE OF THE COMPUTER FORENSICS TOOLS AND TECHNIQUES

Blog banner

CBSE + International Thinking: How Indian Schools Are Producing World-Ready Students

Blog banner

File Organization and Access

Blog banner

Uniprocessor Scheduling

Blog banner

Life

Blog banner

Why Users Leave Your Website in 5 Seconds (And How UI/UX Fixes It)

Blog banner

What is Vishing?

Blog banner

Survey of Which Movies Types people are Prefer to Watch in India.

Blog banner

Uniprocessor scheduling

Blog banner