Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Ai And The Lottery Defying Odds With Intelligent Prediction

Authors: Gary Covella Ph D

1st Edition

B0CND1ZB98, 979-8223302568

More Books

Students also viewed these Databases questions

Question

The models used to analyse different national cultures.

Answered: 1 week ago

Question

The nature of the issues associated with expatriate employment.

Answered: 1 week ago