wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Scheduling

profile
Dhruvi Bhatt
Sep 09, 2024
0 Likes
0 Discussions
62 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

Firewall

Blog banner

Indian Food

Blog banner

K-means use cases

Blog banner

Threads and concurrency

Blog banner

EVOLUTION OF THE MIRCOPROCESSOR

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

Threads

Blog banner

geographic information system (GIS)

Blog banner

Basic Security For SOAP Services

Blog banner

VIRTUAL MACHINE

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Constrains in service design

Blog banner

Memory Management

Blog banner

Smart Shoephone: Is that technology overdose!?

Blog banner

KASHMIR TRIPS

Blog banner

Study of Sniffing Tools

Blog banner

Hey Aryan here

Blog banner

MULTITHREADING:ENHANCEING PERFORMANCE AND EFFICIENCY IN COMPUTING

Blog banner

Cycling

Blog banner

Sleep Matters: The Science Behind Toddler Naps

Blog banner

Texting is actually better than talking in person

Blog banner

Harsh Rathod

Blog banner

Memory Management

Blog banner

Data Mining

Blog banner

Real-Time Operating Systems (RTOS) Deep Explanation

Blog banner

FREE VERSION OF G-MAIL

Blog banner

Virtual Machine

Blog banner

DIGITAL TECHNOLOGY

Blog banner

SECURITY VULNERABILITIES COUNTERMEASURES IN A SMART SHIP SYSTEM

Blog banner

Memory management

Blog banner

What is Brute Force Attack? How to defend against it?

Blog banner

What are NFT s?

Blog banner

Understanding Gen Z: A Generation Facing Crisis and Potential

Blog banner

Number Guessing game --lisp

Blog banner

AN EVENT-BASED DIGITAL FORENSIC INVESTIGATION

Blog banner

CYBER FORENCIS: PAST, PRESENT AND FUTURE.

Blog banner

What are the different types of E-mail crime and process of email forensic?

Blog banner

Multiprocessor and scheduling

Blog banner

Password Generator - Lisp

Blog banner

"Games and the future"

Blog banner

Segmentation and paging concept

Blog banner

Short note on Microsoft office

Blog banner