• retagged by
8,284 views
18 18 votes
In optimal page replacement algorithm, information about all future page references is available to the operating system (OS). A modification of the optimal page replacement algorithm is as follows:

The OS correctly predicts only up to next $4$ page references (including the current page) at the time of allocating a frame to a page.

A process accesses the pages in the following order of page numbers:
$$1,3,2,4,2,3,1,2,4,3,1,4$$
If the system has three memory frames that are initially empty, the number of page faults that will occur during execution of the process is __________. (Answer in integer)

4 Answers

16 16 votes

       $\text{page fault: ✔}$

       $\text{ page hit :  ✘}$

• edited by
1 flag:
✌ Low quality (Ethindhar_Hariprasat)
Answer:
Position:
Show:

Related questions

42 42 votes
8 8 answers
11.1k
11.1k views
Arjun asked Feb 27, 2025
11,070 views
A disk of size $512 \text{ M}$ bytes is divided into blocks of $64 \text{ K}$ bytes. A file is stored in the disk using linked allocation. In linked allocation, each data...
28 28 votes
5 5 answers
14.7k
14.7k views
Arjun asked Feb 27, 2025
14,683 views
Suppose in a multiprogramming environment, the following C program segment is executed. A process goes into I/O queue whenever an I/O related operation is performed. Assu...
38 38 votes
9 9 answers
14.9k
14.9k views
Arjun asked Feb 27, 2025
14,900 views
A computer has two processors, $M_{1}$ and $M_{2}$. Four processes $P_{1}, P_{2}, P_{3}, P_{4}$ with CPU bursts of $20,16,25$, and $10$ milliseconds, respectively, arrive...
19 19 votes
2 answers 2 answers
7.5k
7.5k views
Arjun asked Feb 27, 2025
7,524 views
Refer to the given $3$-address code sequence. This code sequence is split into basic blocks. The number of basic blocks is ________. (Answer in integer)1001: i = 1 1002: ...