Using the above addresses as a guide provide an example of


Problem 1: Consider a computer system with the following five fixed-sized memory partitions (arranged In that order) and the memory requirements of the given four processes.

Memory Partitions

100KB

400KB

200KB

400KB

600KB


Process

P1

P2

P3

P4

Memory required

230 KB

370 KB

190 KB

595 KB


a. First-fit technique
b. Best-fit technique
c. Worst-fit technique
d. Which algorithm makes the most efficient use of memory?

Problem 2: The following page table Is for a system with 16-bit virtual and physical addresses and with 4,096-byte pages. The reference bit is set to 1 when the page has been referenced. Periodically. a thread zeroes out all values of the reference bit. A dash for a page frame Indicates the page Is not In memory. The page-replacement algorithm Is localized LRU. and all numbers are provided In decimal.

Page

Page Frame

Reference Bit

0

9

0

1

1

0

2

14

0

3

10

0

4

-

0

5

13

0

6

8

0

7

15

0

8

0

0

9

-

0

10

5

0

11

4

0

12

-

o

13

3

0

14

-

0

15

2

0

a. Convert the following virtual addresses (in hexadecimal) to the equivalent physical addresses (provide answers in hexadecimal AND decimal). Also set the reference bit for the appropriate entry in the page table. (3)

i. Ox8C2C

ii. Ox00ED

iii. OxEA14

IV. 0x6901

V. Ox23A1 OxA999

b. Using the above addresses as a guide. Provide an example of logical addresses (in hexadecimal) that result in a page faults. (2)

c. From what set of page frames will the LRU page-replacement algorithm choose in resolving a page fault?

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Using the above addresses as a guide provide an example of
Reference No:- TGS01115536

Now Priced at $50 (50% Discount)

Recommended (94%)

Rated (4.6/5)