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

VIRTUAL MACHINE

Blog banner

Operating System

Blog banner

5 Stages of Digital Marketing

Blog banner

Riddhi Miyani 53003220140

Blog banner

The Role of Summer Camps in Early Childhood Development

Blog banner

The seven-step improvement process

Blog banner

Smartsheet

Blog banner

Mumbai local ......

Blog banner

Security issues

Blog banner

INTERRUPTS

Blog banner

Digital Balance: Keeping Children Mindful in the Screen Age

Blog banner

Computer Forensics and its Impact in Business Environment

Blog banner

Spitting Pink in the Sink: Why Your Gums Randomly Bleed

Blog banner

virtual machines and virtualization

Blog banner

Understanding Portion Control: How Much Food Do You Really Need?

Blog banner

Workplace mental health: A Psychological Perspective on Employee Well-being and Organizational Growth

Blog banner

Password Generator - Lisp

Blog banner

In the world of Technology...

Blog banner

Cyber Security Standards

Blog banner

Why is online marketing is important in current scenario

Blog banner

Direct memory access (DMA)

Blog banner

Decoding Confusion Matrix

Blog banner

Some web vulnerabilities

Blog banner

Clarizen

Blog banner

What is Segmentation?

Blog banner

Capacity management in ITSM

Blog banner

Disk cache

Blog banner

Ransomware

Blog banner

"Games and the future"

Blog banner

KEAP MANAGEMENT SYSTEM

Blog banner

PPT methodology

Blog banner

Hot Mango Pickle (Methiyu)

Blog banner

Anomaly Detection in Behavioral Data Using Machine Learning

Blog banner

Policies for Service Transition

Blog banner

Child labour

Blog banner

MY MOST THRILLED TREK ..... BHAIRAVGAD

Blog banner

Building Confidence in Children Through Daily Routines and Play

Blog banner

File management

Blog banner

Process and Threading

Blog banner

UniProcessor Scheduling

Blog banner

SESSION HIJACKING

Blog banner

How can parents support a child’s mental health?

Blog banner