wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Scheduling

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

Blog banner

"Audit" In Data Science

Blog banner

Virtualization

Blog banner

I/O Management and Disk Scheduling

Blog banner

Developments in Modern Operating Systems

Blog banner

Importance of modern technology era

Blog banner

Deadlocks in Operating Systems

Blog banner

Virtual machine.

Blog banner

Data Analytics in Data Science

Blog banner

Top Career Paths After a B.Com Degree in Mumbai: What’s Next for You?

Blog banner

Google classroom

Blog banner

Evolution of Operating Sytems

Blog banner

Sagar Parikrama

Blog banner

File Systems in OS.

Blog banner

Ubiquitous Computing

Blog banner

Ethical Issues in Data Science and Role of Data Science in Smart Cities

Blog banner

Virtual Memory

Blog banner

You'll get to know about Pankaj Negi

Blog banner

Navigating the Digital Battlefield: Security Breaches and Effective Countermeasures

Blog banner

What Function Does SEO Serve in Digital Marketing?

Blog banner

Data Acquisition in Cyber Forensics

Blog banner

Operating system

Blog banner

virtual memory

Blog banner

Jira service Management

Blog banner

MYNTRA

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

Principles of Concurrency

Blog banner

Types of E-Commerce

Blog banner

The evolution of OS

Blog banner

Security requirements for Safe E-Payments

Blog banner

Semaphores

Blog banner

american greatines

Blog banner

Paging

Blog banner

Tracking Emails & Email Crimes

Blog banner

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

Blog banner

Sniffing: A Cyber Security Threat

Blog banner

Dudhasagar waterfall ?

Blog banner

LinkedIn: Watch out for these 7 upcoming updates in 2023

Blog banner

Data is an asset and it is your responsibility!

Blog banner

Starvation

Blog banner

Working with Sniffers for monitoring network communication

Blog banner

Fashion design

Blog banner