Question: A system has four frames. The time of loading, time of last access, and the R(reference) and M (modified) bits for each page are as

A system has four frames. The time of loading, time of last access, and the R(reference) and M (modified) bits for each page are as shown below. The times are in clock ticks:

page

loaded

last ref.

R

M

0

126

280

1

0

1

230

265

0

1

2

140

270

0

0

3

110

285

1

1


For each of the following page replacement algorithms, determine which page will be replaced:

  1. Second Chance
  2. LRU
  3. CLOCK


b) Consider a file whose size varies between 4Kb and 4MB during its lifetime. State, with a reason, whether or not the following allocation schemes will be appropriate for implementing the file storage: contiguous allocation, linked list allocation, file allocation table

c) In the case of an external USB hard drive attached to a computer, which is more suitable a write-through cache or nonwrite-through cache.

d) Write down the average access time for a disk cache given that the h% of the time it takes 1ms to satisfy a request from the cache and that 75ms is needed to satisfy a request if a disk read is necessary.

e) (i)Describe how to implement a lock using semaphores.

(ii)What is a test-and-set instruction? How can it be used to implement mutual exclusion? You may include a segment of pseudo-assembly code to aid your explanation.

Step by Step Solution

3.48 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Second Chance page 0 LRU page 3 CLOCK page 2 b The allocation schemes would not be appropriate for ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

635db628ed796_178220.pdf

180 KBs PDF File

Word file Icon

635db628ed796_178220.docx

120 KBs Word File

Students Have Also Explored These Related Accounting Questions!