-
Notifications
You must be signed in to change notification settings - Fork 0
/
B.py
38 lines (33 loc) · 902 Bytes
/
B.py
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
from Task import Task
QUANTUM_TIME_1 = 5.0
STATIC_TASKS_1 = ["p1/8/0", "p2/4/1", "p3/9/2", "p4/5/3"]
def main():
arr = STATIC_TASKS_1
while True:
inp = input("""
for exit type (x)
for clear the list type (clear)
for Round Raven type (RR)
for FIFO type (FIFO)
for SJF type (SJF)
for HRRN type (HRRN)
for SRT type (SRT)
enter your task with |task name/time/incoming time| format: """)
if inp == "x":
return
if inp == "clear":
arr = []
elif inp == "RR":
round_rabin(arr)
# elif inp == "FIFO":
# FIFO(arr)
# elif inp == "SJF":
# SJF(arr)
# elif inp == "SRT":
# SJF(arr)
# elif inp == "HRRN":
# HRRN(arr)
# else:
# arr.append(inp)
def round_rabin(arr):
pass