我不确定我应该如何解决这个问题。
我尝试了以下但我卡住了
''''' 循环算法完成一组作业 ''' ''''' Best Fit Algorithm 根据大小放置或选择作业 ''' 随机导入
def roundrob():
# 1 Build the waiting queue (WQ)
wq_names = [x for x in range(1, 100)]
wq_times = [random.randint(1, 15) for x in range(1, 100)]
# ready queue
rq = []
# process size
pro_size = []
# while loop to loop through the job list and place them in the ready queue
i = 0
while i < len(job_list):
rq = rq.append(job_list[i])
if job_list[i] <= mem_block:
rq = rq.append(job_list[i])
else:
pass
i += 1