Optimized Round Robin CPU Scheduling for Critical Processes

Optimized Round Robin CPU Scheduling  for Critical Processes

Article Fingerprint

ReserarchID

CSTSA41E

Optimized Round Robin CPU Scheduling  for Critical Processes Banner

Key Research Insights

Synthesized scholarly intelligence & interactive research assistant
  • English
  • Afrikaans
  • Albanian
  • Amharic
  • Arabic
  • Armenian
  • Azerbaijani
  • Basque
  • Belarusian
  • Bengali
  • Bosnian
  • Bulgarian
  • Catalan
  • Cebuano
  • Chichewa
  • Chinese (Simplified)
  • Chinese (Traditional)
  • Corsican
  • Croatian
  • Czech
  • Danish
  • Dutch
  • Esperanto
  • Estonian
  • Filipino
  • Finnish
  • French
  • Frisian
  • Galician
  • Georgian
  • German
  • Greek
  • Gujarati
  • Haitian Creole
  • Hausa
  • Hawaiian
  • Hebrew
  • Hindi
  • Hmong
  • Hungarian
  • Icelandic
  • Igbo
  • Indonesian
  • Irish
  • Italian
  • Japanese
  • Javanese
  • Kannada
  • Kazakh
  • Khmer
  • Korean
  • Kurdish (Kurmanji)
  • Kyrgyz
  • Lao
  • Latin
  • Latvian
  • Lithuanian
  • Luxembourgish
  • Macedonian
  • Malagasy
  • Malay
  • Malayalam
  • Maltese
  • Maori
  • Marathi
  • Mongolian
  • Myanmar (Burmese)
  • Nepali
  • Norwegian
  • Pashto
  • Persian
  • Polish
  • Portuguese
  • Punjabi
  • Romanian
  • Russian
  • Samoan
  • Scots Gaelic
  • Serbian
  • Sesotho
  • Shona
  • Sindhi
  • Sinhala
  • Slovak
  • Slovenian
  • Somali
  • Spanish
  • Sundanese
  • Swahili
  • Swedish
  • Tajik
  • Tamil
  • Telugu
  • Thai
  • Turkish
  • Ukrainian
  • Urdu
  • Uzbek
  • Vietnamese
  • Welsh
  • Xhosa
  • Yiddish
  • Yoruba
  • Zulu
Reading Preferences
Font Size
Line Spacing
Background

I. INTRODUCTION

CPU scheduling is a fundamental practice in the realm of operating systems, orchestrating the execution of processes to efficiently utilize the CPU. This practice becomes necessary when a process must seize CPU control while another process is temporarily halted in a waiting state, typically due to resource unavailability, such as I/O operations. The primary objectives of CPU scheduling are to enhance system effectiveness, responsiveness, and fairness while maximizing CPU utilization.

Process scheduling, an integral component of multiprogramming operating systems, involves managing the transition of processes in and out of the CPU based on a specific strategy. These operating systems can load multiple processes into executable memory concurrently, allowing them to share the CPU through time multiplexing.

There are two principal categories of CPU scheduling algorithms: preemptive and non-preemptive. In preemptive scheduling, a process allocated to the CPU can be interrupted, and its running state may be changed to a waiting state. This approach is known for temporarily suspending logically runnable processes and is referred to as preemptive scheduling. However, frequent arrivals of high-priority processes in the ready queue can potentially lead to starvation for lower-priority processes. It's important to note that preemptive scheduling comes with the overhead of managing these process interruptions.

In contrast, non-preemptive scheduling ensures that once a process gains access to the CPU, it retains control until its execution is complete. The CPU cannot be forcibly taken away from the process until it finishes its execution. In this scenario, a process voluntarily releases the processor only after its task is done.

While various CPU scheduling algorithms exist, some common ones include First In First Out (FIFO), Shortest Job First (SJF), Priority Scheduling, and Round Robin CPU Scheduling. Each of these algorithms offers unique advantages and trade-offs in managing the CPU's allocation to processes.

II. LITERATURE SURVEY

In FCFS scheduling, jobs are executed in the order they arrive, following a "first come, first served" principle [1]. This algorithm can operate in both non-preemptive and preemptive modes depending on system requirements. It is easy to understand and implement, relying on a First-In-First-Out (FIFO) queue. However, FCFS suffers from the drawback of high average waiting times, limiting its overall performance.

Shortest Job First (SJF), also known as Shortest Job Next, prioritizes tasks based on their execution time [3]. It can function as both a preemptive and non-preemptive algorithm. SJF is particularly effective in reducing waiting times, making it a preferred choice in batch systems where CPU time requirements are known in advance. However, it is impractical for interactive systems where predicting CPU time is challenging.

Priority scheduling is a non-preemptive algorithm commonly used in batch systems [5]. Each process is assigned a priority, with the highest-priority process scheduled first, followed by processes of equal priority in a first-come-first-served manner. Priorities can be assigned based on memory, time, or other resource requirements.

Round Robin is a preemptive scheduling algorithm where each process is allocated a fixed time quantum for execution [8]. When a process's time quantum expires, it is preempted, and another process is allowed to execute for its allocated time period. Context switching is necessary to manage preempted processes effectively.

Multiple-level queues are a manual scheduling algorithm [15] that leverages various existing algorithms to categorize jobs based on common characteristics. Multiple queues are maintained for processes with similar attributes, each with its specific scheduling algorithm [8]. Priorities are assigned to each queue, enabling effective organization. For instance, OS-bound jobs can be grouped in one queue, while I/O-bound jobs reside in another. The Process Scheduler selects jobs from each queue based on the algorithm associated with that queue. Multi-level queue scheduling was developed for scenarios where processes naturally belong to different groups.

III. SHORTCOMINGS OF EXISTING ALGORITHM

We have evaluated the conventional Round Robin (RR) algorithm as our baseline scheduling approach. The RR algorithm is generally considered efficient because it ensures that all processes in the process set have an equal opportunity for execution. However, our research has identified that our system comprises both critical processes with high priority and normal (low-priority) processes. A significant limitation of the RR algorithm is its lack of consideration for process priorities, which we regard as a major drawback.

To address this limitation, we have proposed a novel methodology aimed at enhancing the RR algorithm's effectiveness.

Let's now consider the following set of processes with a fixed time quantum of 4.

Table 7130: Table 1: For the Existing Methodology, Processes in the Ready Queue
Process NamePriorityBurst Time
P005
P113
P2112
P309
P408

Round Robin scheduling is known for its ability to ensure a fair chance for every process in the set to execute. Consequently, Figure 1 illustrates the Gantt chart and waiting times for the given set of processes.

Figure 1: Gantt chart of Existing Methodology
Figure 1: Gantt chart of Existing Methodology

The average waiting time (AWT) for processes with both low and high priorities is presented in Figure 2 below.

Figure 2: Waiting Time Analysis of Existing Methodology
Figure 2: Waiting Time Analysis of Existing Methodology

IV. PROPOSED METHOD

The Round Robin algorithm operates under the premise of treating all jobs with equal priority, executing processes one at a time for a specific duration known as the Time Quantum (TQ). A process can continue running until either its time quantum (TQ) is exhausted or it completes its CPU burst time. Within the system, processes have varying priorities, distinguishing between high-priority critical tasks, which demand immediate CPU attention, such as shutting down the computer due to overheating or issuing alerts for unauthorized access, and normal-priority processes, which encompass all other standard tasks.

V. PROPOSED ALGORITHM

Our proposed algorithm is given below.

Step 1: Input process details, including the process name, priority, and burst time.

Step 2: Save the collected information in a queue labeled as "READYQ."

Step 3: Establish two distinct queues: "HIGHPQ" for high-priority processes and "LOWPQ" for regular-priority processes.

Step 4: Repeat steps 5 to 11 until the remaining CPU burst times for processes in both "HIGHPQ" and "LOWPQ" reach zero.

Step 5: Choose the next process from "HIGHPQ" or "LOWPQ" alternatively, with the initial selection favoring "HIGHPQ" to give higher-priority tasks precedence.

Step 6: If the selected process has a remaining CPU burst time greater than or equal to the time quantum, proceed to step 7; otherwise, go to step 8.

Step 7: Execute the chosen process for the duration of the time quantum.

Step 8: Continue executing the selected process until its remaining burst time reaches zero.

Step 10: Record the process's IN-TIME and OUT-TIME in a table known as the GANTTCHART.

Step 11: If the previous process was selected from "HIGHPQ," switch the next turn to "LOWPQ," and vice versa.

In this study, I have introduced an approach that ensures high-priority processes receive precedence in execution. The methodology I've suggested involves granting alternating opportunities to both high and low priority processes. It begins by selecting a process from the high-priority queue, followed by the selection of the next process from the low-priority queue. The following steps outline the proposed methodology.

HIGHPQ- This queue contains the processes of high priority.

Process NamePriorityBurst Time
P113
P2112

LOWPQ- This queue contains the processes of low priority.

Process NamePriorityBurst Time
P005
P309
P408

Below, in Figure 3, you can observe the Gantt chart and waiting times for the processes listed in Table 1, using a time quantum of 4.

GANTT CHART

PROCESSIN-TIMEOUT-TIME
P103
P037
P2711
P31115
P21519
P41923
P22327
P02728
P32832
P43236
P33637

WAITING TIME

PROCESSPRWT
P0023
P110
P2115
P3028
P4028

AWT:18.8

Figure 3: Working of Proposed Methodology

VI. RESULT AND ANALYSIS

The figure below illustrates the application of the proposed algorithm, resulting in an average waiting time for high-priority processes of approximately 7.5. This value is nearly half of the average waiting time observed when using the existing algorithm. Furthermore, the overall waiting time for the process set is significantly reduced through the implementation of the proposed algorithm.

Figure 4: Result Analyses of Existing Vs Proposed Methodology
Figure 4: Result Analyses of Existing Vs Proposed Methodology

The same result can be analyzed using bar chart shown in figure 5.

Figure 5: Result Analysis of Existing Vs Proposed Methodology Using Bar chart
Figure 5: Result Analysis of Existing Vs Proposed Methodology Using Bar chart

VII. CONCLUSION

In this study, I've maintained the core principle of traditional round-robin scheduling, which aims to ensure that all processes receive an equal opportunity to execute within a specific time quantum. The innovation lies in the strategic placement of high-priority processes at the rear of the ready queue, preventing them from being excessively delayed by late arrivals. The proposed approach is expected to reduce the average waiting time for high-priority processes, but it may lead to an increase in the average waiting time for normal priority processes. The overall average waiting time for all processes within the ready queue may exhibit improvement or remain unchanged, contingent on the specific mix of processes.

Although the proposed algorithm demonstrates enhanced performance for high-priority processes, there remains an ongoing drive for continued improvement. In the future, these results could potentially be refined by introducing variable time quantum strategies. Furthermore, optimizing the algorithm's execution can be accomplished by leveraging more efficient data structures.

References

26 Cites in Article
  1. Sanjay Kumar,Panda,Saurav Kumar,Bhoi (2012). An Effective Round Robin Algorithm using Min-Max Dispersion Measure.
  2. Abraham Silberschatz,Peter Baer Galvin,Greg Gagne Operating System Concepts.
  3. H Rakesh Mohanty,Khusbu Behera,Monisha Patwari,Dash (2010). Design and Performance Evaluation of a New Proposed Shortest Remaining Burst Round Robin (SRBRR) Scheduling Algorithm.
  4. Abdulrazaq Abdulrahim,Saleh E. Abdullahi,Junaidu B. Sahalu (2014). A New Improved Round Robin (NIRR) CPU Scheduling Algorithm.
  5. Abhishek Sirohi,Aseem Pratap,Mayank Aggarwal (2014). Improvised Round Robin (CPU) Scheduling Algorithm.
  6. Pallab Banerjee,Probal Banerjee,Shweta Sonali Dhal (2012). Comparative Performance Analysis of Average Max Round Robin Scheduling Algorithm (AMRR) using Dynamic Time Quantum with Round Robin Scheduling Algorithm usingStatic Time Quanmtum.
  7. P Varma (2013). A Finest Time Quantum for Improving Shortest Remaining Burst Round Robin (SRBRR) Algorithm.
  8. Srishty Jindal,Grover (2014). Round Robin CPU Scheduling Using Dynamic Time Quantum with Multiple Queue.
  9. Rakesh K.Lenka,Prabhat Ranjan (2012). A 2LFQ Scheduling with Dynamic Time Quantum using Mean Average.
  10. (2014). A MODIFIED ROUND ROBIN CPU SCHEDULING ALGORITHM WITH DYNAMIC TIME QUANTUM..
  11. A Silberschatz,P Galvin,G Gagne Operating Systems Concepts.
  12. Sanjaya Kumarpanda,Debasis Dash,Jitendra Kumar Rout (2012). A Group based Time Quantum Round Robin Algorithm using Min-Max Spread Measure.
  13. (2014). Designing Various CPU Scheduling Techniques using SCILAB.
  14. (2009). Self-Adjustment Time Quantum in Round Robin Algorithm Depending on Burst Time of the Now Running Processes.
  15. R Matarneh (2009). Seif-Adjustment Time Quantum in Round Robin Algorithm Depending on Burst Time of the Now Running Proceses.
  16. H Behera,R Mohanty,D Nayak (2010). A New Proposed Dynamic Quantum with Re-Adjusted Round Robin Scheduling Algorithm and Its Performance Analysis.
  17. Elkanah Oyetunji,Ayodeji Oluleye (2009). Evaluating Solution Methods to Bicriteria Scheduling Problems.
  18. Ajit Singh,Priyanka Goyal,Sahil Batra (2010). An Optimized Round Robin Scheduling Algorithm for CPU Scheduling.
  19. J Rami,Matarneh (2009). Self-Adjustment Time Quantum in Round Robin Algorithm Depending on Burst Time of Now Running Processes.
  20. Abdulrazaq Abdulrahim,Saleh E. Abdullahi,Junaidu B. Sahalu (2014). A New Improved Round Robin (NIRR) CPU Scheduling Algorithm.
  21. Sourav Kumar Bhoi,Sanjaya Kumar Panda,Debashee Tarai (2011). Enhancing cpu performance using subcontrary mean dynamic round robin (smdrr) scheduling algorithm.
  22. H Rakesh Mohanty,Khusbu Behera,Monisha Patwari,Dash (2010). Design and Performance Evaluation of a New Proposed Shortest Remaining Burst Round Robin (SRBRR) Scheduling Algorithm.
  23. Ishwari Singh,Rajput (2012). A Priority based Round Robin CPU Scheduling Algorithm for Real Time Systems.
  24. Manish Kumar,Mishra,Abdul Khan (2012). An Improved Round Robin CPU Scheduling Algorithm.
  25. P Varma (2013). A FINEST TIME QUANTUM FOR IMPROVING SHORTEST REMAINING BURST ROUND ROBIN (SRBRR) ALGORITHM.
  26. Rakesh Kumar Yadav,K Abhishek,Navin Mishra,Himanshu Prakash,Sharma (2010). An Improved Round Robin Scheduling Algorithm for CPU Scheduling.

Funding

No external funding was declared for this work.

Conflict of Interest

The authors declare no conflict of interest.

Ethical Approval

No ethics committee approval was required for this article type.

Data Availability

Not applicable for this article.

How to Cite This Article

Debashish Barman, Biswajit Paul, Swastik Bhattacharya, Dr. Sourav De, Dr. Govind Prasad Arya. 2026. "Optimized Round Robin CPU Scheduling for Critical Processes". Global Journal of Computer Science and Technology - H: Information & Technology GJCST-H Volume 23 (GJCST Volume 23 Issue H3).

Download Citation

High-quality academic research on CPU scheduling algorithms and processes.
Journal Specifications

Crossref Journal DOI 10.17406/gjcst

Print ISSN 0975-4350

e-ISSN 0975-4172

Keywords
Classification
GJCST-H Classification ACM Code: D.4.1
Version of record

v1.2

Issue date
January 5, 2024

Language
English
Experiance in AR

Explore published articles in an immersive Augmented Reality environment. Our platform converts research papers into interactive 3D books, allowing readers to view and interact with content using AR and VR compatible devices.

Read in 3D

Your published article is automatically converted into a realistic 3D book. Flip through pages and read research papers in a more engaging and interactive format.

Article Matrices
Total Views: 626
Total Downloads: 25
All Trends

Request Access

Please fill out the form below to request access to this research paper. Your request will be reviewed by the editorial or author team.
X

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

High-quality academic research articles on global topics and journals.

Optimized Round Robin CPU Scheduling for Critical Processes

Debashish Barman
Debashish Barman Sikkim Manipal University
Biswajit Paul
Biswajit Paul
Swastik Bhattacharya
Swastik Bhattacharya
Dr. De
Dr. De
Dr. Arya
Dr. Arya