Computer Sciences > GATE 2023 > Operating Systems
Consider the following two-dimensional array D in the C programming language, which is stored in row-major order:
int D[128][128];
Demand paging is used for allocating memory and each physical page frame holds 512 elements of the array D. The Least Recently Used (LRU) page-replacement policy is used by the operating system. A total of 30 physical page frames are allocated to a process which executes the following code snippet:
The number of page faults generated during the execution of this code snippet is _______.

Correct : 8192

Similar Questions

Consider a process P running on a CPU. Which one or more of the following events will always trigger a context switch by the OS that results in process P moving...
#913 MSQ
Consider a process P running on a CPU. Which one or more of the following events will always trigger a context switch by the OS that results in process P moving...
#913 MSQ
Consider a process P running on a CPU. Which one or more of the following events will always trigger a context switch by the OS that results in process P moving...
#913 MSQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......