Skip to content

Commit f4860bd

Browse files
committed
Update
1 parent 9912c51 commit f4860bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CPU_Scheduler/PreemptivePriorityScheduling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
class _PreemptivePriorityScheduling: # Class for simulating Preemptive Priority CPU Scheduling
77
process_list = [] # List to Store the Processes [PID, AT, BT, RT, PL,CT]
88
fourColumnProcessList = []
9+
waitingTime = 0
10+
turnaroundTime = 0
911
def inputUser(self, no_of_processes): # USER INPUT
1012
for process_id in range(1, no_of_processes + 1): # Loop to enter user values for each process
1113
temporary = [] # Temporary list to store values
@@ -122,6 +124,8 @@ def schedulingProcess(self): # Scheduling Algorithm
122124
avg_wt = total_wt / len(self.process_list)
123125
avg_tt = total_tt / len(self.process_list)
124126

127+
128+
return
125129
# # Print table results
126130
# print("\nProcess\tWaiting Time\tTurnaround Time")
127131
# for process in self.process_list:

0 commit comments

Comments
 (0)