Process Synchronization - Operating System Questions & Answers - Sanfoundry PDF

Title Process Synchronization - Operating System Questions & Answers - Sanfoundry
Author code with joey
Course Operating System
Institution Government College University Faisalabad
Pages 8
File Size 287.1 KB
File Type PDF
Total Downloads 86
Total Views 161

Summary

Download Process Synchronization - Operating System Questions & Answers - Sanfoundry PDF


Description

3/9/2021

Process Synchronization - Operating System Questions & Answers - Sanfoundry



Operating System Questions & Answers – Process Synchronization « Prev

Next »

This set of Operating System Multiple Choice Questions & Answers (MCQs) focuses on “Process Synchronization”. 1. Which

executing in the system?

b) child process c) parent process d) init process View Answer Answer: a Explanation: A cooperating process can be aected by other processes executing in the system. Also it can aect other processes executing in the system. A process shares data with other

https://www.sanfoundry.com/operating-system-questions-answers-process-synchronization/

1/8

3/9/2021

Process Synchronization - Operating System Questions & Answers - Sanfoundry

2.

and takes place is called ________

a) dynamic condition c) essential condition d) critical condition View Answer Answer: b Explanation: When several processes access the same data concurrently and the outcome of the execution depends on the particular order in which access takes place is called race condition. 3. If a critical section. What is this condition called?

, then no other processes can be executing in their

b) critical exclusion c) synchronous exclusion d) asynchronous exclusion View Answer Answer: a Explanation: If a process is executing in its critical section, then no other processes can be executed in their critical section. This condition is called Mutual Exclusion. Critical section of the process is shared between multiple processes. If this section is executed by more than one or all

https://www.sanfoundry.com/operating-system-questions-answers-process-synchronization/

2/8

3/9/2021

Process Synchronization - Operating System Questions & Answers - Sanfoundry

4. Which one of the following is a) thread b) pipe d) socket View Answer Answer: c Explanation: Semaphore is a synchronization tool. Semaphore is a mechanism which synchronizes or controls access of threads on critical resources. There are two types of semaphores i) Binary Semaphore ii) Counting Semaphore. 5. A semaphore is a shared integer variable __________ a) that can b) that can not be more than zero c) that can not drop below one d) that can not be more than one View Answer Answer: a Explanation: A semaphore is a shared integer variable that can not drop below zero. In binary semaphore, if the value of the semaphore variable is zero that means there is a process that uses a critical resource and no other process can access the same critical resource until it is released. In Counting semaphore, if the value of the semaphore variable is zero that means there is no resource available. advertisement

Factory Design Pattern

https://www.sanfoundry.com/operating-system-questions-answers-process-synchronization/

3/8

3/9/2021

Process Synchronization - Operating System Questions & Answers - Sanfoundry

6. Mutual exclusion can be provided by the __________ a) mutex locks b) binary semaphores d) none of the mentioned View Answer Answer: c Explanation: Mutual exclusion can be provided by both mutex locks and binary semaphore. Mutex is a short form of Mutual Exclusion. Binary semaphore also provides a mechanism for mutual exclusion. Binary semaphore behaves similar to mutex locks. 7.

eectively inverting the

relative priority of the two tasks, the scenario is called __________ b) priority removal c) priority exchange d) priority modication View Answer Answer: a Explanation: When a high priority task is indirectly preempted by a medium priority task eectively inverting the relative priority of the two tasks, the scenario is called priority inversion. 8. a) hardware level

can be done on __________

b) software level d) none of the mentioned View Answer Answer: c Explanation: Process synchronization can be done on both hardware and software level. Critical section problems can be resolved using hardware synchronisation. But this method is not simple for implementation so software synchronization is mostly used.

https://www.sanfoundry.com/operating-system-questions-answers-process-synchronization/

4/8

3/9/2021

Process Synchronization - Operating System Questions & Answers - Sanfoundry

d) all of the mentioned View Answer Answer: d Explanation: A monitor is a module that encapsulates shared data structures, procedures that operate on shared data structure, synchronization between concurrent procedure invocation. advertisement

10.

to wait within the monitor __________

b) condition variables must be used as boolean objects c) semaphore must be used d) all of the mentioned View Answer Answer: a Explanation: To enable a process to wait within the monitor a condition variable must be declared as condition. Sanfoundry Global Education & Learning Series – Operating System. Here’s the list of Best Reference Books in Operating System.

https://www.sanfoundry.com/operating-system-questions-answers-process-synchronization/

5/8

3/9/2021

Process Synchronization - Operating System Questions & Answers - Sanfoundry

Participate in the Sanfoundry Certication contest to get free Certicate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs! Telegram | Youtube | LinkedIn | Instagram | Facebook | Twitter | Pinterest « Prev - Operating System Questions and Answers – Process Scheduling Queues » Next - Operating System Questions and Answers – Process Creation advertisement

Recommended Posts: 1. C Programming Examples on Linked List 2. PLC Programming Examples 3. C Programming Examples without using Recursion 4. Python Programming Examples on Searching and Sorting 5. C# Programming Examples on Exceptions 6. Embedded System Questions and Answers 7. C Programming Examples on Trees 8. Python Programming Examples on Trees 9. C# Programming Examples on Files 10. MongoDB Questions and Answers 11. C# Programming Examples on Data Structures 12. C++ Programming Examples on Data-Structures 13. Digital Communication Questions and Answers 14. Java Programming Examples on Data-Structures 15. Data Structure Questions and Answers

https://www.sanfoundry.com/operating-system-questions-answers-process-synchronization/

6/8

3/9/2021

Process Synchronization - Operating System Questions & Answers - Sanfoundry

19. Java Programming Examples on Multithreading 20. Operating System Questions and Answers advertisement

Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn

Subscribe Sanfoundry Newsletter and Posts Name*

Email*

Subscribe











https://www.sanfoundry.com/operating-system-questions-answers-process-synchronization/

 7/8

3/9/2021

Process Synchronization - Operating System Questions & Answers - Sanfoundry

© 2011-2021 Sanfoundry. All Rights Reserved.

https://www.sanfoundry.com/operating-system-questions-answers-process-synchronization/

8/8...


Similar Free PDFs