Question: for OS-virtual memory: 1. If there are 100 frames and 5 processes, how many frames should be given to each process? a. Equal proportion: b.

for OS-virtual memory:
1. If there are 100 frames and 5 processes, how many frames should be given to each process? a. Equal proportion: b. Proportional allocation, if s1=40 and s2=175

2. In a 1,024-KB segment, memory is allocated using the buddy system. Using Figure 9.26 as a guide, draw a tree illustrating how the following memory requests are allocated: [5 marks]

Request 6-KB

Request 256 bytes

Request 956 bytes

Request 1,500 bytes

Request 70-KB

Next, modify the tree for the following releases of memory. Perform coalescing whenever possible:

Release 256 bytes

Release 956 bytes

Release 1,500 bytes

3. The page table given below 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.

for OS-virtual memory: 1. If there are 100 frames and 5 processes,
how many frames should be given to each process? a. Equal proportion:

Page Page Frame Reherence B 0 1 0 0 se ele 13 0 8 O 0 0 0 o O 0 O 0 O O 0 0 TO 11 12 13 14 15 Figure 9.32 Page table for Exercise 9 22. a. Convert the following virtual addresses (in hexadecimal) to the equivalent physical addresses. You may provide answers in either hexadecimal or decimal. Also set the reference bit for the appropriate entry in the page table. OxE12C Ox3A9D OxA9D9 Ox7001 OxACA1 b. Using the above addresses as a guide, provide an example of a logical address in hexadecimal) that results in a page fault c. From what set of page frames will the LRU page- replacement algorithm choose in resolving a page fault

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Databases Questions!