Question: QUESTION 2 a. Assume that there is a computer with page size 64 bytes (for both virtual and physical page frames), 1024 bytes of virtua

QUESTION 2 a. Assume that there is a computer with page size 64 bytes (for both virtual and physical page frames), 1024 bytes of virtua address space and 1024 bytes of RAM. Suppose that there are three processes, process A, B and C. Their page tables are as follows. Process A Process B Process C VPN Phy PEN Present VPN Phy PEN Present VPN Phy PEN Present 10 0 1 0 2 1 0 4 1 1 0 1 3 1 1 12 1 2 14 15 0 12 0 2 0 11 1 14 1 1 14 5 1 16 1 15 18 1 15 1 i. Calculate the number of pages in each AS, how many bits a virtual address has, and ff these, how many specify a virtual page number, and how many an offset? [2 marks] ii. For each of the following instructions explain whether it will result in a memory location being read and its value placed in a register (if so, give the physical address that will be read), result in a page fault or result in an invalid memory access exception: [2 marks each] o (process B) movl 880, %eax o (process A) movi 80, %eax o (process B) movl 980, %eax o (process C) movl 200, %eax b. Suppose an IP datagram with 4000 bytes of data (not counting the IP header) is sent across two networks of the Internet (i.e., from source host to a router to the destination host). The first network has an MTU of 2000 bytes; the second has an MTU of 1200 bytes. Here, a network's MTU gives the size of the largest IP datagram that can be carried in a link-layer frame. Give the sizes, offsets and the "M" bit values of the sequence of fragments delivered to the network layer at the destination host. Assume all IP headers are 20 bytes. [10 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
