4,814 views
2 2 votes

If the total number of available frames is 50, and there are 2 processes one of 10 pages and the other of 5 pages then how much of memory would be proportionally allocated to each of these processes?

a. Depends on the process requirements

b. 33 and 16 frames respectively

c. Memory is allocated equally for both

d. 5 and 10 respectively

Source: http://nptel.ac.in/courses/106108101/pdf/Worked_Out_Problems/Mod_4.pdf

1 Answer

Best answer
2 2 votes

In allocating free frames to the processes having different sizes which is measured in terms of number of pages as :

Logical address space of a process = No of pages * Page size

So more the number of pages of a process , the more priority it needs to be given..So for this we have proportional allocation technique which gives free frames according to the fraction of the total number of pages which is allocated to all the processes.

So here fraction of page occupied by process 1 = 10 / (10 + 5)  =  2 / 3

Total number of frames = 50

So frame allocated to process 1 = 2 / 3 * 50

                                               =  100 / 3  

                                               = 33

Similarly frames allocated to process 2 =  1/3 * 50

                                                          = 16 (approx)

So B) is the correct option.

• selected by
Position:
Show:

Related questions

1 1 vote
1 answers 1 answer
1.2k
1.2k views
1 1 vote
0 0 answers
1.9k
1.9k views
hem chandra joshi asked Oct 30, 2017
1,940 views
A hash table with ten buckets with one slot per bucket is shown in the following figure. The symbols S1 to S7 initially entered using a hashing function with linear probi...
3 3 votes
3 answers 3 answers
5.6k
5.6k views
sampad asked Oct 20, 2015
5,557 views
If $a_n$ is number of ternary sequences of length $n$ with even number of $0$'s, then the recurrence relation for $a_n$ is?Also find the value of $a_8$.
2 2 votes
1 1 answer
125
125 views
GO Classes asked Aug 10
125 views
Consider a three-level page table on a system where:Page size $=256$ bytesPage-table entry size $=2$ bytesFirst-level page tables contain $16$ entriesSecond-level page ta...