Q61.Marks: +2.0UGC NET Paper 2: Computer Sc 6th Jan 2025 Shift 1
If the virtual memory size is 32 MB and a physical memory size is 4MB with a page size of 2KB, Calculate the number of frames available in physical memory
1.1024
2.2048✓ Correct
3.3072
4.4096
Solution
The correct answer is Option 2.
Key Points
If the virtual memory size is 32 MB and the physical memory size is 4 MB with a page size of 2 KB, we need to calculate the number of frames available in physical memory.
Calculation:
First, convert the physical memory size into kilobytes (KB):
4 MB = 4 * 1024 KB = 4096 KB
Next, divide the physical memory size by the page size to get the number of frames:
Number of frames = Physical Memory Size / Page Size
Number of frames = 4096 KB / 2 KB = 2048 frames
Therefore, the number of frames available in physical memory is 2048.
Additional Information
Virtual Memory:
Virtual memory allows a computer to compensate for shortages of physical memory by temporarily transferring data from random access memory (RAM) to disk storage.
It uses both hardware and software to enable a computer to run larger applications or multiple applications simultaneously.
Physical Memory:
Physical memory refers to the actual RAM installed in a computer.
It is a volatile memory that temporarily stores data and machine code currently being used.
Page Size:
Page size is the size of a page in memory management schemes. It is a fixed-length contiguous block of virtual memory.
Page sizes are typically a power of 2, ranging from 512 bytes to several megabytes.