OS2008/03/18 14:29

  Suppose that the following processes arrive for exevution at the timesindicated. Each process will run the listed amount of time. In answering the questions, use nonpreemptive scheduling, and base all decisions on the information that you have at the time the decision must be made. 

Process

Arrival Time

Bust Time

P1

0.0

8

P2

0.4

4

P3

1.0

1







a. What is average turnaround time for these processes with the FCFS scheduling algorithm?

solution  

 

사용자 삽입 이미지

  

total time = p1(8)+p2(12-0.4)+p3(13-1) = 31.6

average time = 31.6/3 = 10.53

  

  

b. What is the average turnaround time for these processes with the SJF scheduling algorithm?

solution

 

사용자 삽입 이미지

total time = p1(8)+p3(9-1)+p2(13-0.4) = 28.6

average time = 28/3 = 9.53

크리에이티브 커먼즈 라이선스
Creative Commons License

'OS' 카테고리의 다른 글

file 내용 지우기  (0) 2008/10/26
윈도우 기본 프로세스  (0) 2008/08/19
msinet.ocx 오류 해결.  (0) 2008/08/15
vb6ko.dll 오류 해결  (0) 2008/08/15
FCFS, SJF, RR(Round-Robin) scheduling 문제로 풀어보기  (0) 2008/03/23
FCFS, SJF scheduling 문제로 풀어보기  (0) 2008/03/18
Posted by 청짱
TAG ,

TRACKBACK http://soseem.net/trackback/4 관련글 쓰기

댓글을 달아 주세요