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

How to insert contacts in zoho crm using php

Blog banner

CONCURRENCY: MUTUAL EXCLUSION AND SYNCHRONIZATION-het karia

Blog banner

The Right way of cooking

Blog banner

Web Site

Blog banner

Love is in air.....

Blog banner

Process Creation

Blog banner

Cache Memory

Blog banner

What is thread and alse multithreading

Blog banner

Continual service improvement vs maintenance phase in IT

Blog banner

Direct Memory Access

Blog banner

INTRANET

Blog banner

Understanding Business Layer in Data Science

Blog banner

SQL Injection Techniques

Blog banner

URL vs Domain

Blog banner

Knowledge Management in Continual Service improvement (CSI)

Blog banner

Firewall / IDS Evasion Techniques

Blog banner

Components of GIS

Blog banner

Software Piracy & Online Data Protection in Digital World

Blog banner

TRIGGERS IN DATABASE

Blog banner

HTML vs HTML5

Blog banner

MOBILE DEVICE FORENSIC

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Memory input output management

Blog banner

Is Social Media Marketing The Next Wave Of Digital Marketing?

Blog banner

Concurrency:Deadlock and Starvation

Blog banner

5 People who claimed to have Time Traveled

Blog banner

Life lesson

Blog banner

WAKE UP ITS FOOD o'CLOCK...!!!!!

Blog banner

INTERNET SECURITY

Blog banner

Image Steganalysis in Digital Forensics

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

Kernel Modes: User Mode vs. Kernel Mode - 80

Blog banner

Deadlock and starvation in operating system

Blog banner

Not anti-social, but pro-solitude

Blog banner

Embedded Operating System

Blog banner

M commerce

Blog banner

Evolution of Operating system.

Blog banner

Health and fitness

Blog banner

You'll get to know about Pankaj Negi

Blog banner

"Can Lisp do Machine Learning?"

Blog banner

TECHNOLOGY : BOON OR CURSE ?

Blog banner

Working with Sniffers for monitoring network communication

Blog banner