Operating System (Chapter 7)
Operating System (Chapter 7)
1. Consider a system with 16MB of memory and fixed partitions, all of size 64KB, answer the
following:
a. Identify the minimum number of bits needed in an entry in the process table to record
the partition to which a process has been allocated
b. Identify the number of bits in the limit register
i. Solution
1. (a) Number of partitions = 256 = 28
Number of bits need to score one of 256 partition numbers = 8
2. Consider a memory with a contiguous allocation scheme consisting of 4 partitions of 600K, 400K,
500K, and 300K (in order) respectively. Given a set of processes with 200K, 300K, 470K, and
500K (in order):
3. Consider a logical address space of sixty four pages of 1024 words each mapped onto a physical
memory of 32 frames.
a. How many bits are there in logical address?
b. How many bits are there in physical address?
i. Solution
1. (a) Number of bits in the logical address = 16
2. (b) Number of bits in the physical address = 15
4. a. Consider a single level paging system with the page table stored in memory
Assume the usage of Translation Look-aside Buffer (TLB) with 70 percentage hit ratio, and
also assume that it takes 30 nanoseconds to search the TLB and 200 nanoseconds to access
memory. Identify the effective memory access time.