Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part I 1. In a computer system, a page replacement policy is used to manage system r newly-created process has 3 page frames allocated to

image text in transcribed
Part I 1. In a computer system, a page replacement policy is used to manage system r newly-created process has 3 page frames allocated to it, and initially ali page frames are empty. Then it generates the page references indicated belovw resources. Suppose that a ABCBADABCDABACBD 0) How many page faults would occur with FIFO page replacement? (a) 7 (b) 9 (e) 10 (d) 12 (ii) How many page faults would occur with LRU (using linked list) page repl (a) 7 (Gii) How many page faults would occur with Optimal page replacement? (a) 7 (b) 9 (d) 12 2. For the following questions, choose the correct statement and put the on page 2 number into Table 1 A. IFig. I means process R requests for resource A 2) Fig. I means process A requests for resource R 3) Fig. 1 means resource R requests for process A. 4) Fig. I means process A is holding resource R. B. I)Fig. 2 means process B is holding resource S 2) Fig. 2 means process S is holding resource B. 3) Fig. 2 means process B is waiting for resource S 4) Fig. 2 means resource B is holding process s. C. Fig 3 shows that there are four jobs in the queue. Fig.i Fig.2 40 50 20 Job A arrived first, and D last. The run times for the four jobs A, B, C, and D are 50, 20, 40, 10 seconds, respectively. When using first-come ron first-served scheduling algorithm, the average Fig. 3 turnaround time is 1)40 2)45 3) 75 4) 87 D. For the question in Fig.3, when using shortest job first scheduling algorithm, the average turmaround time 1) 34.4 2) 44.1 3)55.5 4) 64.8 E. For the question in Fig. 3, the round robin scheduling algorithm is used. Suppose the quantum is one second, no other jobs arrive, and the scheduler starts from the situation in Fig.3. After two seconds has passed, the job order in the queue is 4) DABC )BCDA Consider a system with two users. User 1 has four processes, A, B, C, D, and user 2 has two processes, E and F Each user has been promised 50% of CPU time. Supposed the round-robin scheduling is used. CPU time that each process of user 1 will use is 1) 12.5% For the question F (see above), the possible scheduling sequence is I)ABECDFABECDF )AEFBEFCEFDEF 2) CBDA 3) CDAB F. 3) 37.5% 4)50% G. 2)ABCDEFABCDEF 4)AEBFCEDFAEBFCEDF H. A system has five processes A, B, C, D, and E, three resources U, V and W. Process A holds resource W and requests for resource U, Process B holds resource U and requests for resource V, Process C holds nothing and request for V, Process D holds nothing and requests for W, Process E holds resource V and requests for resource W. In this situation, 1) The system is not deadlocked

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions