wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Traditional UNIX Scheduling

profile
Parth Patel
Sep 09, 2024
0 Likes
0 Discussions
190 Reads

Traditional UNIX scheduling, as used in  SVR3  and  4.3 BSD UNIX , is primarily designed for a  time-sharing interactive environment . The goal of the scheduling algorithm is to provide good  response time  for interactive users while ensuring that low-priority background jobs do not starve. Although modern UNIX systems have replaced this algorithm, understanding its structure offers valuable insights into  time-sharing scheduling .


 Multilevel Feedback with Round Robin:-


The traditional UNIX scheduler employs a  multilevel feedback queue  combined with a  round-robin scheduling  approach within each priority queue. This means processes are assigned to different queues based on their priority, and within each queue, processes take turns executing.


One-Second Preemption:-


The system uses  one-second preemption , meaning that if a running process does not block or complete within one second, it is preempted. This ensures that no single process can monopolize the CPU for too long, maintaining fairness across processes.


Priority Calculation:-


Process priority is determined based on the process type and  execution history . The following formulas are used to calculate CPU utilization and process priority:



Priority Recalculation:-


The priority of each process is recomputed  once per second , at which point a new scheduling decision is made. The  base priority  ensures processes remain within fixed priority bands. These bands group processes into different priority levels, such as  Swapper ,  Block I/O device control ,  File manipulation ,  Character I/O device control , and  User processes .


The bands are used to:


-  Optimize access to block devices  (like disk drives).


-  Respond quickly to system calls .



I/O-Bound vs. CPU-Bound Processes:-


Within the  user process band , the scheduler penalizes  processor-bound processes  (those using significant CPU time) and favors  I/O-bound processes  (those waiting for input/output operations). This helps improve system efficiency by ensuring that processes waiting for I/O can proceed quickly, while processes that are consuming large amounts of CPU time are deprioritized.


Scheduling Example:-


An example of process scheduling might involve three processes (A, B, and C), all starting at the same time with a  base priority  of 60. Ignoring the  nice value , the clock interrupts the system 60 times per second, incrementing a counter for the running process. Assuming none of the processes block themselves and no other processes are ready to run, they are scheduled based on their priorities, and preempted as necessary.


 Conclusion:-


The traditional UNIX scheduling algorithm is well-suited to general-purpose time-sharing environments. By using multilevel feedback, round-robin preemption, and execution history, it balances the needs of  interactive users  and  background tasks  while ensuring efficient use of system resources, especially I/O devices.


Comments ()


Sign in

Read Next

Festive Ethnic Wear Guide: Patola-Inspired Looks for Every Celebration

Blog banner

Memory management

Blog banner

Meal Maharaj — 3 CP, 5 CP, 8 CP. Same Love, Different Portions

Blog banner

PROCESS STATE:

Blog banner

Direct Memory Access

Blog banner

What if COVID does not exist!

Blog banner

Sensory Play for Toddlers: Boosting Curiosity Through Touch, Sound, and Colour

Blog banner

IOT- Internet Of Things

Blog banner

A Brief Review on Cyber Forensics and its Analysis Tool

Blog banner

Processing Crime and Incident Scenes

Blog banner

security requirements for safe e-payment

Blog banner

The art of being alone

Blog banner

SNAPCHAT

Blog banner

Health and fitness in technology

Blog banner

The Everyday Parenting Dilemma: Safety Vs Independence

Blog banner

File management

Blog banner

The most common internet security threats

Blog banner

10 Reasons to date your best friend

Blog banner

Depression

Blog banner

Save Girl Child

Blog banner

Virtual memory in os

Blog banner

Self defence

Blog banner

Types of Threads

Blog banner

What is OS Fingerprinting?

Blog banner

10 Reasons why Monica and Chandler are the best couple ever.!!!

Blog banner

Understanding Gen Z: A Generation Facing Crisis and Potential

Blog banner

Deadlocks in Operating Systems

Blog banner

american greatines

Blog banner

10 Signs your Computer has Virus

Blog banner

Windows Operating System

Blog banner

Process State

Blog banner

M commerce

Blog banner

What is Packet Filtering?

Blog banner

Modern OS

Blog banner

Severe landslides continue to cause concern in Joshimath, Uttarakhand

Blog banner

Layers Of Blockchain

Blog banner

Palm Vein Biometric Technology; Contactless vein authentication

Blog banner

Improving defences Proxy Device(defense in depth)

Blog banner

BENIFITS OF YOGA

Blog banner

What is Influencer Marketing and its Trends

Blog banner

VPN

Blog banner

Data Security must be your Priority!

Blog banner