subject

1. Consider demand paging. You are given the following reference string, page replacement policy and the number of frames available. Calculate the number of page faults in each case. A. ReferenceString:1234234235672342310 989108123 Algorithm: LRU
# of frames: 3
B. Reference String: Algorithm: Optimal
# of frames: 3
C. Reference String: Algorithm: LRU
# of frames: 2
D. Referencestring:1237841241541241281 011324171011 Algorithm: FIFO
# of frames: 3
E. Referencestring:1237841241541241281 011324171011 Algorithm: FIFO
# of frames: 4
To answer the question, write down the # of page fault, and also copy the reference string and circle all references that causes a page fault.
2. For the disk scheduling algorithm such as SCAN/c-SCAN, rotational delays are not used for optimization purpose. Suppose time require for one rotation is nearly the same as time to travel one track during seeking, suggest a way that you can further optimize one of the above algorithms.
3. For main memory allocation, nowadays virtually all systems uses demand paging, not contiguous allocation. However, for space allocation for files, contiguous allocation is still being used. Suggest two reasons why.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
To increase sales, robert sends out a newsletter to his customers each month, letting them know about new products and ways in which to use them. in order to protect his customers' privacy, he uses this field when addressing his e-mail. attach bcc forward to
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 22.06.2019 19:50
Write a car class having two private member variables called tank and speed. write public methods called pumpgas and gofast. the method pumpgas gets an integer for gas that must be pumped. that value needs to be added to tank (no more than 20 gallons). it must return the amount of gas that is purchased ($4 per gallon). the method gofast should increase the speed by 5 each time it is called.write a constructor for the above class that initialized both variables to zero.write a tostring to display both the tank and speed when the car is printed.modify the car class to implement the interface comparable and an interface called carinter having the public methods in carinter.write the main program to create an array of size 5 of type car. create 5 car objects having each location of the array to refer to one of the cars. test the pumpgas, gofast, equals method on the array items. write an enhanced loop to print all the car values (using a tostring written last time).write a generic method to find the minimum of four items. pass int, double, char, string and car objects to test this method.
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
You know the right answer?
1. Consider demand paging. You are given the following reference string, page replacement policy and...
Questions
question
Mathematics, 24.07.2021 07:50
question
Mathematics, 24.07.2021 07:50
question
Mathematics, 24.07.2021 07:50
question
Mathematics, 24.07.2021 07:50
question
Mathematics, 24.07.2021 07:50
Questions on the website: 13722361