subject

Assume that the program is running on a system using demand paging and the page size is 4KB. Each integer is 4 bytes long. It is clear that each array requires 16-page space. As an example, the following elements from matrix A will fit in one page: A[0,0]-A[0,127], A[1,0]-A[1,127], A[2,0]-A[2,127], ... to A[7,0]-A[7,127]. A similar storage pattern can be derived for the rest of array A and for arrays B and C. Assume that the system allocates a 4-page working set for this process. One of the pages will be used by the program and three pages can be used for the data. Also, assume that two index registers are assigned for i and j (so, no memory accesses are needed for references to these two variables).a. Discuss how frequently page faults would occur. b. Can you modify the program to minimize the page fault frequency

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:20
Write a method replacekey in the minheap class with the following signature: public void replacekey(integer oldkey, integer newkey) the method will replace the first occurrence of oldkey with the newkey, and restore the min-heap property after the change. if the oldkey does not exist in the heap, the method prints an appropriate message and returns without changing the heap. example: suppose our binary heap object (bh) has the following keys: *** 4 6 7 32 19 64 26 99 42 54 28 then the method call: bh.replacekey (oldkey integer(54), newkey integer(2))
Answers: 1
question
Computers and Technology, 22.06.2019 04:00
When you collaborate or meet with a person or group online, it is called
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
You need a reliable network for about twenty-five computers that will be distributed across a large building. it is important that the network be relatively cheap. which topology should you use?
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Anetwork security application that prevents access between a private and trusted network and other untrusted networks
Answers: 1
You know the right answer?
Assume that the program is running on a system using demand paging and the page size is 4KB. Each in...
Questions
question
Mathematics, 31.08.2019 08:30
question
Advanced Placement (AP), 31.08.2019 08:30
Questions on the website: 13722361