Assignment_3

# Assignment_3 - The least often are pages 3 and 5 because...

This preview shows pages 1–4. Sign up to view the full content.

Exercises 6 a,d,b,a,f,b,e,c,g,f,b,g (FIFO) a * d * b* a f* b e* c* g* f* b* g a a a a f f f f g g g g d d d d d e e e f f f b b b b b c c c b b Failure ratio =9/12 = 75% Success ratio =3/12 = 25% (LRU) a* d* b* a f* b e * c* g* f* b* g a a a a a a e e e f f f d d d f f f c c c b b b b b b b b g g g g Failure ratio =9/12 = 75% Success ratio =3/12 = 25% (MRU) a d b* a f* b e* c* g* f b* g a a a a f f f f f f b b d d d d d d d d d d d b b b b e c g g g g Failure ratio =8/12 = 66.6% Success ratio =4/12 = 33.3%

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
In this example, MRU is the best because have the success ratio 33% which is better than LRU and FIFO but we can’t really judge after just one example. I think MRU is not good because its moved every memory reference, which is a very time-consuming process. Exercises 7 The most referenced page is Page 1 because it has five 1’s which is the most referenced

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: The least often are pages 3 and 5 because they both have only two 1’s which is the least referenced. Exercises 9 Exercises 10 AvgMemAccessTime = AvgCacheAccessTime = (1-h) * AvgMainMemAccTime AvgMemAccessTime = 200 + (1 – 0.67) * 500 = 365 nsec Average Memory Access Time is 365 nsec Exercises 12 25,600/2,048 = 12,5 2,048/2= 1,024 13 pages will be created This situation will have 1,024 Internal fragmentation on the last of pages which is 13 th ....
View Full Document

## This note was uploaded on 04/19/2011 for the course CS 250 taught by Professor Idontknow during the Spring '11 term at City College of San Francisco.

### Page1 / 4

Assignment_3 - The least often are pages 3 and 5 because...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online