Question no 1 Draw Gantt chart and find Average waiting time by FCFS and SRTN. Process P11 Arrival Time Burst Time 2 2 P12 7. P13 7. P14 3. 6. PIS 2 P16 9. 4 P17 10 8. P18 6. P19 4 P20 10

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Question no 1
Draw Gantt chart and find Average waiting time by FCFS and SRTN.
Process
Arrival Time
Burst Time
P11
P12
1
P13
1
7.
P14
3.
6.
P15
2
P16
9.
4
P17
10
8.
P18
1
P19
9.
4
P20
10
Transcribed Image Text:Question no 1 Draw Gantt chart and find Average waiting time by FCFS and SRTN. Process Arrival Time Burst Time P11 P12 1 P13 1 7. P14 3. 6. P15 2 P16 9. 4 P17 10 8. P18 1 P19 9. 4 P20 10
Expert Solution
Step 1

Introduction of CPU Scheduling:

CPU Scheduling is the process in which one process uses the CPU and another process waits for the CPU because of unavailability of any resources and there are mainly FCFS(First Come First Served)Scheduling, SJF(Shortest job first), Priority Scheduling, and Round Robin Scheduling.

Step 2

FCFS Scheduling: This is the simplest CPU-scheduling algorithm in which the process that requests the CPU first is allocated to the CPU first.

Gantt Chart

P12 P13 P11 P14 P15 P18 P16 P19 P17 P20

1           8           15          17         23          25           26          30          34          42          47

Process

Burst Time (BT)

Arrival Time (AT)

Completion time (CT)

Turn Around Time  (TAT)=CT-AT

Waiting Time (WT)=TAT-BT

P11

2

2

17

15

13

P12

7

1

8

7

0

P13

7

1

15

14

7

P14

6

3

23

20

14

P15

2

5

25

20

18

P16

4

9

30

21

17

P17

8

10

42

32

24

P18

1

6

26

20

19

P19

4

9

34

25

21

P20

5

10

47

37

32

Average Waiting time=13+0+7+14+18+17+24+19+21+3210=16510=16.5 sec

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Embedded software development
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education