Directions (Q91–95): A program computes the average of each column of a table T with 17 rows and 1024 columns:
for j = 0 … 1023 {
temp = 0;
for i = 0 … 16
temp = temp + T[i][j];
print(temp / 17.0);
}
T[i][j] and temp are 32-bit floating-point values, memory is word addressable, and temp is kept in a register. Main memory is paged and holds 16 pages of 1024 words; page replacement is LRU. Unless stated otherwise, T is stored in row-major order.
What is the main memory hit ratio?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. 0
Explanation
In the row-major case every reference faults, so the main-memory hit ratio is 0.
More System Software and Operating System questions
- Model of protection can be viewed as
- Process in memory also contain the heap section. What is the use of heap section?
- How many page faults occur for optimal algorithm for the following reference string, with four frames? 1, 2, 3, 4, 5, 3, 4, 1, 6, 7, 8, 7, 8
- Degree of concurrency in thread can be arranged in the manner. > >
- Consider processes A (arrival 0, burst 6), B (3, 2), C (5, 4), D (7, 6), E (10, 3), times in ms. Using shortest remaining time first schedu…
- Match List I with List II