Skip to main content

This Is An Individual Assignment Show Your Work For All Prob

Page 1

This Is An Individual Assignment Show Your Work For All Problems1s This is an individual assignment. Show your work for all problems.

Paper For Above instruction Problem 1: Suppose we have 212 bytes of virtual memory and 28 bytes of physical main memory. Suppose the page size is 24 bytes. a) How many pages are there in virtual memory? To determine the number of pages in virtual memory, divide the total virtual memory size by the page size: Total virtual memory = 212 bytes = 4,096 bytes Page size = 24 bytes Number of pages = Total virtual memory / Page size = 4096 / 24 ≈ 170.67. Since the number of pages must be an integer, we take the ceiling: Number of pages = 171 b) How many page frames are there in main memory? Total main memory = 28 bytes = 28 bytes Page frame size = 24 bytes Number of page frames = Main memory size / Page size = 28 / 24 ≈ 1.17. Considering integer count, total frames = 1 (since partial frame isn't possible). c) How many entries are in the page table for a process that uses all of virtual memory? The page table must have one entry per virtual page; thus, entries = number of pages = 171. Problem 2:


Turn static files into dynamic content formats.

Create a flipbook
This Is An Individual Assignment Show Your Work For All Prob by Dr Jack Online - Issuu