Форум программистов, компьютерный форум CyberForum.ru

С++ для начинающих

Войти
Регистрация
Восстановить пароль
 
michelan
0 / 0 / 0
Регистрация: 02.04.2013
Сообщений: 6
#1

Answer to this questions, in the Operation Systems! - C++

27.06.2013, 20:47. Просмотров 493. Ответов 1
Метки нет (Все метки)

1.Five batch jobs, A through E, arrive at a computer center at essentially the same time. They have an estimated running time of 15, 9, 3, 6, and 12 minutes, respectively. Their (externally defined) priorities are 6, 3, 7, 9, and 4 respectively, with a lower value corresponding to a higher priority. For each of the following scheduling algorithms, determine the turnaround time for each process and the average turnaround for all jobs. Ignore process switching overhead. Explain how you arrived at your answers. In the last three cases, assume that only one job at a time runs until it finishes and that all jobs are completely processor bound.
a. round robin with a time quantum of 1 minute
b. shortest job first
Similar
Эксперт
41792 / 34177 / 6122
Регистрация: 12.04.2006
Сообщений: 57,940
27.06.2013, 20:47     Answer to this questions, in the Operation Systems!
Посмотрите здесь:

Ошибка: Overlapped I/O operation is in progress. ERROR_IO_PENDING C++
Questions на собеседованиях по с++ C++
Visual C++ Questions C++
Questions about C++ C++
C++ Two questions about C++
invalid pointer operation C++
What operation can be increased by one variable x? C++
C++ Drawing operation was attemted when there was no current window
C++ Invalid pointer operation
Acm.timus Wrong answer C++
Acm.timus Wrong answer C++
C++ Ошибка при компиляции Illegal structure operation

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
После регистрации реклама в сообщениях будет скрыта и будут доступны все возможности форума.
vxg
Модератор
3063 / 1865 / 196
Регистрация: 13.01.2012
Сообщений: 7,100
28.06.2013, 13:03     Answer to this questions, in the Operation Systems! #2
Maybe...
----
a
----
Turnaround time for each process:
B 9 (higher priority - submit at 0 and running 9 minutes)
E 9 + 12 = 21 (next priority - submit at 0 and wait for previous job and running 12 minutes)
A 9 + 12 + 15 = 36 (next priority - submit at 0 and wait for previous jobs and running 15 minutes)
C 9 + 12 + 15 + 3 = 39 (next priority - submit at 0 and wait for previous jobs and running 3 minutes)
D 9 + 12 + 15 + 3 + 6 = 45 (next priority - submit at 0 and wait for previous jobs and running 6 minutes)
Average turnaround for all jobs:
(9 + 21 + 36 + 39 + 45) / 5 = 30
----
b
----
Turnaround time for each process:
C 3 (submit at 0 and running 3 minutes)
D 3 + 6 = 9 (submit at 0 and wait for previous job and running 6 minutes)
B 3 + 6 + 9 = 18 (submit at 0 and wait for previous jobs and running 9 minutes)
E 3 + 6 + 9 + 12 = 30 (submit at 0 and wait for previous jobs and running 12 minutes)
A 3 + 6 + 9 + 12 + 15 = 45 (submit at 0 and wait for previous jobs and running 15 minutes)
Average turnaround for all jobs:
(3 + 9 + 18 + 30 + 45) / 5 = 21
Yandex
Объявления
28.06.2013, 13:03     Answer to this questions, in the Operation Systems!
Ответ Создать тему
Опции темы

КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Рейтинг@Mail.ru