Operating Systems
Name two differences between logical and physical addresses.
Why are page sizes always powers of 2?
Consider a logical address space of 64 pages of 1,024 words
each, mapped onto a physical memory of 32 frames.
a. How many bits are there in the logical address?
b. How many bits are there in the physical address?
Logical address is the virtual address generated by CPU to access the data while the physical address is the actual address at while data resides in the memory. Logical address space is limited by the number of bits in the address space of the CPU while the physical address is limited by the size of available main memory.
Page size is always powers of 2 because base of the binary number is 2 and hence for any given number of bits n for the address space, the total possible number of address that can be generate is 2n and this is the reason that to utilize entire possible address space, page size is kept in powers of 2.
a. Size of logical address in terms of number of words = 64*1024 = 216 words
Hence number of bits for logical address = log2 (number of words) = log2 216 = 16 bits
b. Since size of frame = size of page = 1024 words
Size of physical memory = 32*1024 = 215 words
Number of bits for physical address = log2 215 = 15 bits
Please comment for any clarification.
Operating Systems Name two differences between logical and physical addresses. Why are page sizes always powers...
Operating systems
Consider a logical address space of 4 pages of 1024 words each, mapped onto a physical memory of 16 frames. a. How many bits are there in the logical address? b. How many bits are there in the physical address? te: Show the calculation.)
Consider a logical address space of 8 pages; each page is 2048 byte long, mapped onto a physical memory of 64 frames.(i) How many bits are there in the logical address and how many bits are there in the physical address?(ii) A 6284 bytes program is to be loaded in some of the available frames ={10,8,40,25,3, 15,56,18,12,35} . Show the contents of the program's page table.(iii) What is the size of the internal fragmentation?(iv) Convert the following logical addresses 2249...
Consider a logical address space of 256 pages with a 4-KB page size, mapped onto a physical memory of 64 frames. a. How many bits are required in the logical address? b. How many bits are required in the physical address?
Consider a logical address space of 4 pages of 1024 words each, mapped onto a physical memory of 16 frames. a. How many bits are there in the logical address? b. How many bits are there in the physical address?
Consider a logical address space of 512 pages with a 4-KB page size, mapped onto a physical memory of 256 frames. How many bits are required in the logical address? How many bits are required in the physical address?
Its multi part. please make sure to solve all parts. Consider a logical address space of eight pages of 1024 words, each mapped onto a memory of 32 frames. c. How many bits are in the offset for the logical address d. How many bits are in the offset for the physical address e. How many bits are in the Frame Number f. How many bits are in the Page Number
2. Consider a logical address space of 4 pages of 1024 words each, mapped onto a physical memory of 16 frames. a. How many bits are there in the logical address? b. How many bits are there in the physical address?
4. Assume that we have a machine with the following memory specifications: Virtual addresses are 32 bits wide Physical addresses are 26 bits wide . Page size is 16 Kbytes 4/A) How many pages are in the virtual memory space? 4/B) How many page frames are in the physical memory space? 4/C) If each page table entry consists of a physical frame number, 1 present/absent bit Answers Pages .Page Frames and 1 dirty/clean bit (which shows if the page has...
Exercise l: Suppose that we have a virtual memory space of 28 bytes for a given process and physical memory of 4 page frames. There is no cache. Suppose that pages are 32 bytes in length. 1) How many bits the virtual address contain? How many bits the physical address contain? bs Suppose now that some pages from the process have been brought into main memory as shown in the following figure: Virtual memory Physical memory Page table Frame #...
Question 1 Which of the following is true about virtual addresses? Virtual addresses for the same physical memory location may differ from process to process Virtual addresses are synonymous with physical addresses Virtual addresses always refer to locations on disk Virtual addresses for the same physical memory location may differ from thread to thread Question 2 How do pages and frames relate to each other? A page holds words while a frame holds pictures A frame is a larger structure...