Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi teacher, can u help me answer all the question? If your answer is true I will upvote you Q1 Which statement(s) about Test-and-set solution

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Hi teacher, can u help me answer all the question? If your answer is true I will upvote you Q1 Which statement(s) about Test-and-set solution for Critical Section Problem below is(are TRUE? 1. It is deadlock-free II. It is starvation free III. It ensure processes enter CS in FIFO order IV. More than one process can enter CS at the same time without causing race condition problem. Select one: O A IV only O B. I only OC II and III OD. I and II Q2 Suppose we want to synchronize two concurrent processes P and Q using binary semaphores S and T. The code for the processes P and Q is shown below: Process P: while (1) { W: print '0'; print '0'; X: } Process Q: while (1) { Y: print '1'; print '1'; Z: } Which of the following will ensure that the output string never contains a sub string of the form 01'0 or 10'1 where n is odd? Select one: O A P(S) at W. VIS) at X, P(S) at Y, V(S) at Z, S initially 1 O B. V(5) at W. VIT) at X, P(S) at Y, VIT) at Z, S and T initially 1 OC P(S) at W, V(T) at X, P(T) at Y, V(S) at 2, 5 and T initially 1 OD. P(S) at W, V(5) at X, PCT) at Y, V(T) at Z, S and T initially 1 Q3 A typical magnetic disk reader has the following specifications: i. Rotational speed is 10000 rotations per minute (RPM) ii. transfer rate of 50 * 106 bytes/sec. iii. the average seek time of the disk is twice the average rotational delay iv. the controller's transfer time is 10 times the disk transfer time. What is the average rotational delay of the disk? Select one: O A. (0.5 x 60/10000) msec O B. (0.5 x 60/10000) x 1000 msec OC (0.3 x 50 x 106) msec OD. ((60/10000) x 1000) msec Q4 Which of the task(s) below will be done by the device manager at the beginning of an I/O request? 1. finding at least a path to a device of the requested type II. Select appropriate path when there is many options. III. Determine when device is not busy. IV. Determine when the bus is not busy. Select one: O A I, II and III only O B. I, II, III and IV OC. II and IV only O D. None OE II, III and IV only

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

Database Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions