Unit3-2m and 14m QB
Unit3-2m and 14m QB
Unit3-2m and 14m QB
TWO MARKS
2. Consider a logical-address space of eight pages of 1,024 words each, mapped onto a
physical memory of 32 frames. [May/June 2013] [May/June 2012] .[April/may
2009]
a. How many bits are in the logical address?
b. How many bits are in the physical address?
Logical address: 13 bits
Physical address: 15 bits
13. State few scenarios for the occurrence of page faults?[May/June 2006]
A page fault occurs when an access to a page that has not been brought into main
memory takes place. The operating system verifies the memory access, aborting the program if it
is invalid. If it is valid, a free frame is located and I/O is requested to read the needed page into
the free frame. Upon completion of I/O, the process table and page table are updated and the
instruction is restarted.
16. Name two differences between logical and physical addresses. [UQ]
Logical address Physical Address
A logical address does not refer to an actual A physical address that refers to an actual
existing address. It refers to an abstract physical address in memory
address in an abstract address space
A logical address is generated by the CPU Physical addresses are generated by the MMU
and is translated into a physical address by the
memory management unit(MMU).
20. What are the common strategies to select a free hole from a set of available holes?
The most common strategies are
• First fit
• Best fit
• Worst fit
21. Describe the difference between first-fit, best-fit and worst-fit dynamic storage
allocation strategies. [UQ]
First fit Best fit Worst fit
First fit allocates the first hole Best fit allocates the smallest Allocate the largest hole.
that is big enough. Searching hole that is big enough. The Again, we must search the
can either start at the entire list has to be searched, entire list, unless it is sorted
beginning of the set of holes unless it is sorted by size. by size. This strategy
or where the previous first-fit This strategy produces the produces the largest leftover
search ended. Searching can smallest leftover hole. hole, which may be more
be stopped as soon as a free useful than the smaller
hole that is big enough is leftover hole from a best-fit
found. approach.
27. What are the advantages of having an inverted page table? [UQ]
Reduces the amount of memory used
40. Define thrashing. How does the system detect thrashing and eliminates it?[UQ]
The high paging activity is called paging. A process is thrashing if it is spending more
time in paging than executing.
Detection:
Operating system monitors CPU utilization. If it is low, we increase the degree of
multiprogramming by introducing new process.
If global replacement algorithm is used, thrashing occurs.
Elimination:
If thrashing occurs, we should decrease the degree of multiprogramming.
Thrashing can be limited by using local replacement algorithm.
16 MARKS
1. Explain the concept of demand paging and the performance issue of demand paging.(8)
[Nov/Dec 2013]
Explain the concept of demand paging. How can demand paging be implemented with virtual
memory?(16) [Nov/Dec 2010]
2. Explain the concept of paging in detail with necessary diagrams.(8) [May/June 2013]
Define paging.Explain the process address translation using paging.List out the pros and cons of
paging.(12) [Nov/Dec 2011]
3. Describe the hierarchical paging technique for structuring page tables.(8) [May/June
2013]
4. Explain any two page replacement algorithms.(8) [Nov/Dec 2013]
Consider the following page reference string: [May/June 2012]
1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6.
How many page faults would occur for the following replacement algorithms, assuming one,
two, three,four,five,six and seven frames? Remember all frames are initially empty, so your first
unique pages will all cost one fault each.
• LRU replacement
• FIFO replacement
• Optimal replacement
5. Consider the following page reference string: 2,1,0,3,4,0,0,0,2,4,2,1,0,3,2. How many
page faults would occur if the working set policy were used with a window size of
4?Show when each page fault would occur clearly.(4) [May/June 2013]
Why should page replacement be performed? Compare FIFO, optimal and LRU page
replacement algorithms, with an example of your choice.(16) [Nov/Dec 2011]
6. Why are segmentation and paging sometimes combined into one scheme?(4) [May/June
2012]
Explain segmentation with paging? [Nov/Dec 2011]
Explain the principles of segmented and paged implementation of memory with a neat
diagram(16) [Nov/Dec 2013]
7. Given memory partitions of 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB (in order) ,
how would each of the first-fit, best-fit, and worst-fit algorithms place processes of 212
KB, 417 KB, 112 KB, and 426 KB (in order)? Which algorithm makes the most efficient
use of memory? (16)[Nov/Dec 2010]
8. What is meant by thrashing? Discuss in detail.(12) [May/June 2013]
9. Explain segmentation memory management scheme(8) [Nov/Dec 2010]
10. Consider the following segment table(8) [May/June 2012] [Nov/Dec 2011]
Segment Base Length
0 219 600
1 2300 14
2 90 100
3 1327 580
4 1952 96
What are the physical addresses for the following logical addresses?
(1)0,430 (2)1,10 (3)2,500 (4)3,400