0% found this document useful (0 votes)
14 views1 page

Unit 2 - Quiz-1

The document appears to be a quiz or test covering process synchronization topics. It contains 5 multiple choice questions about processes, semaphores, and conditions. It also contains a scheduling question asking to calculate turnaround time, waiting time, and average waiting time for 5 jobs of different burst times and priorities.

Uploaded by

Paras Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

Unit 2 - Quiz-1

The document appears to be a quiz or test covering process synchronization topics. It contains 5 multiple choice questions about processes, semaphores, and conditions. It also contains a scheduling question asking to calculate turnaround time, waiting time, and average waiting time for 5 jobs of different burst times and priorities.

Uploaded by

Paras Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Department of Computer Science and Engineering

Student Name…………………..………….. Enroll. No…………………………….…..


Semester………………………………...….. Date………………………………….…...
Course Code.……………………..………… Course Title………………………………
Quiz/Test No.: 5 Marks Obtained…………………………..
Max. Marks : ………..…………………… Evaluator’s Sign……………………….....

1. Which process can be affected by other processes executing in the system?


a) cooperating process
b) child process
c) parent process
d) init process

2. When several processes access the same data concurrently and the outcome of the execution depends on the
particular order in which the access takes place, is called?
a) dynamic condition
b) race condition
c) essential condition
d) critical condition

3. A semaphore is a shared integer variable __________


a) that can not drop below zero
b) that can not be more than zero
c) that can not drop below one
d) that can not be more than one

4. Process synchronization can be done on __________


a) hardware level
b) software level
c) both hardware and software level
d) none of the mentioned

5. To enable a process to wait within the monitor __________


a) a condition variable must be declared as condition
b) condition variables must be used as boolean objects
c) semaphore must be used
d) all of the mentioned

6. Assume that five jobs 1,2,3,4, and 5 with burst time 15,2,4,2 and 8 and priority 3,1,3,4,and 2 arrive in the order 1 2,3,4
and 5. Identify TAT, WAT, and AWT for each job.

You might also like