-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalgorithm1.html
More file actions
95 lines (81 loc) · 3.97 KB
/
Copy pathalgorithm1.html
File metadata and controls
95 lines (81 loc) · 3.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html>
<head>
<title>Priority Preemptive Scheduler Simulator</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="algorithm1.css">
<link rel="stylesheet" href="animation.css">
</head>
<body>
<header>
<h1 class="logo">OPERATING SYSTEM PROJECT</h1>
<nav>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="read_more.html">Documentation</a></li>
<!-- <li><a href="simulators.html" target="_blank">Simulators</a></li> -->
<li class="dropdown">
<a href="simulator.html" class="dropbtn">Simulators</a>
<div class="dropdown-content">
<a href="priority_preemptive.html">Priority Preemptive</a>
<a href="fcfs_disk_scheduling.html">FCFS Disk Scheduling</a>
<a href="petersons.html">Peterson's Solution</a>
<a href="optimal_page_replacement.html">Optimal Page Replacement</a>
</div>
</li>
<li><a href="team.html">About Us</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</nav>
</header>
<section class="container_docs" data-aos="zoom-in-up">
<h1>What is Priority Preemptive Scheduling Algorithm</h1>
<p>Priority preemptive scheduling is a CPU scheduling algorithm where processes with higher priority are given
preference over processes with lower priority. The CPU can preempt a running process if a higher priority
process becomes available, allowing for better response time and throughput for high-priority tasks. The
algorithm assigns each process a priority value, which is typically an integer number. The processes with
higher priority values are given CPU time first, and if a higher priority process becomes available, the
currently running process is preempted and replaced with the higher priority process.<br>
</p>
<h4>
<li>Advantages of Priority Preemptive Scheduling Algorithm</li>
</h4>
<p>High priority tasks are completed faster: The priority preemptive scheduling algorithm ensures that
high-priority tasks are given preference over lower-priority tasks. This helps to complete high-priority
tasks faster and with better response time. <br><br>
Improved system performance: The algorithm allows for better system performance as high-priority tasks are
given priority over low-priority tasks. This results in better resource utilization and improved overall
system performance. <br><br>
Flexibility in priority assignment: Priority values can be dynamically adjusted based on the needs of the
system. This allows for greater flexibility in managing the system and responding to changing
demands.<br><br></p>
<h4>
<li>Disadvantages of Priority Preemptive Scheduling Algorithm</li>
</h4>
<p>Low-priority tasks may suffer: If a large number of high-priority tasks are present in the system,
low-priority tasks may suffer from starvation, resulting in increased waiting time and reduced system
performance. <br><br>
Risk of priority inversion: Priority inversion occurs when a low-priority task holds a resource that a
high-priority task needs, resulting in reduced performance. The priority preemptive scheduling algorithm is
susceptible to priority inversion, which can lead to reduced system performance. <br><br>
Difficulty in assigning priority values: Assigning priority values to processes can be challenging,
especially in large systems with many processes. It requires careful consideration of the importance of each
process and the potential impact on the system if a process is given too high or too low a priority.
</p>
<br>
</section>
<div class="prompt">
<button id="prompt-button">
<img src="quiz.jpg" alt="Chatbot Icon">
</button>
</div>
<script>
const promptButton = document.getElementById("prompt-button");
promptButton.addEventListener("click", function() {
window.location.href = "quiz.html";
});
</script>
</body>
</html>