C1 Using the Least Recently Used (LRU) page replacement algorithm, complete the following page replacements using the reference string given below. Calculate the total number of the page faults. Reference String 0 1 2 3 0 1 4 0 1 2 Frame 1                     Frame 2                     Frame 3                     Page Fault

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

 

  • C1 Using the Least Recently Used (LRU) page replacement algorithm, complete the following page replacements using the reference string given below. Calculate the total number of the page faults.

Reference String

0

1

2

3

0

1

4

0

1

2

Frame 1

 

 

 

 

 

 

 

 

 

 

Frame 2

 

 

 

 

 

 

 

 

 

 

Frame 3

 

 

 

 

 

 

 

 

 

 

Page Fault

 

 

 

 

 

 

 

 

 

 

 

     

 

 

 

  • C2 Create an access matrix for the following scenario:
    • Ahmad has the right to read /etc/passwd and view the grades.
    • Mohammed has the right to view the EECS website.
    • Students have the right to share project data and view the EECS website.
    • Instructors have the right to change the grades.

 

Answer:

 

Object

 

 

Domain

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • C3 Draw the Gantt chart and compute the average turnaround and waiting time for the following processes using the Round Robin Scheduling algorithm. Assume the time quantum is 3 ms.

 

Process

Arrival Time

CPU Burst

P1

0

7

P2

1

4

P3

4

3

 

 

Gantt Chart                                                                                                                 

 

 

 

 

 

 

 

 

 

 

Waiting Time

Turnaround time

P1=

P1=

P2=

P2=

P3=

P3=

Total=

Total=

Average=

Average=

 

  • C4 Suppose the head of a moving-head disk with 200 tracks numbered 0 to 199 is currently serving a request at track 99 and has just finished a request at track 125. The queue of outstanding requests in FIFO order is: 5, 95, 75, 100,30 and 155. What is the total number of head movements (in cylinders) for the following disk-scheduling algorithms?

 

  1. FCFS Scheduling                                                                                                           

       

 

 

 

 

 

 

 

  1. SCAN Scheduling                                                                                  

 

 

 

 

 

                       

 

 

 

  1. SSTF Scheduling                                                                                                                                   

 

 

 

 

 

 

 

 

 

 

 

 

  • C5
  1. Create links between the files in the directory and the disk blocks using linked disk allocation technique:                                     

 

Block

Link

15

12

12

17

17

22

22

30

30

-1

 

File

Start

end

hackers

15

30

Directory

 

Block No

Link Block

Block No

Link

Block

Block No

Link

Block

Block No

Link

Block

Block

No

Link

Block

Block No

Link

Block

 

0

 

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

 

 

  1. Write any two advantages and disadvantages of the linked disk allocation technique?                  

 

Advantages

Disadvantages

 

 

 

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Features of HTML
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