adplus-dvertising
frame-decoration

Question

Semaphores are used to:

a.

Synchronise critical resources to prevent deadlock

b.

Synchronise critical resources to prevent contention

c.

Do I/o

d.

Facilitate memory management

Answer: (a).Synchronise critical resources to prevent deadlock

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Semaphores are used to:

Similar Questions

Discover Related MCQs

Q. In which of the following storage replacement strategies, is a program placed in the largest available hole in the memory?

Q. Remote computing system involves the use of timesharing systems and:

Q. Match the following

(a) Disk scheduling                 (1) Round robin
(b) Batch processing               (2) Scan
(c) Time sharing                       (3) LIFO
(d) Interrupt processing          (4) FIFO

Q. IC 80287 is:

Q. A solution to external fragmentation.

Q. Not a storage placement strategy for an incoming program/data:

Q. A preemptive type of process scheduling strategy:

Q. When a process is accessing shared modifiable data, the process is said to be in:

Q. The first MPI function call made by every MPI process is the call to:

Q. Dijkstra’s Banker’s algorithm is used for:

Q. Memory bank experiencing too much contention from processor:

Q. Consider a disk pack with 32 surfaces, 64 tracks and 512 sectors per pack. 256 bytes of data are stored in a bit serial manner in a sector. The number of bits required to specify a particular sector in the disk is

Q. Consider a system with 2 level cache. Access times of Level 1 cache, Level 2 cache and main memory are 0.5 ns, 5 ns and 100 ns respectively. The hit rates of Level 1 and Level 2 caches are 0.7 and 0.8 respectively. What is the average access time of the system ignoring the search time within the cache?

Q. To overcome difficulties in Readers-Writers problem, which of the following statement/s is/are true?

(i) Writers are given exclusive access to shared objects
(ii) Readers are given exclusive access to shared objects
(iii) Both Readers and Writers are given exclusive access to shared objects

Q. Suppose a system has 12 instances of some resource with n processes competing for that resource. Each process may require 4 instances of the resource. The maximum value of n for which the system never enters into deadlock is

Q. Dirty bit is used to show the

Q. Suppose for a process P, reference to pages in order are 1,2,4,5,2,1,2,4. Assume that main memory can accommodate 3 pages and the main memory has already 1 and 2 in the order 1 – first, 2 – second. At this moment, assume FIFO Page Replacement Algorithm is used then the number of page faults that occur to complete the execution of process P is

Q. Suppose P, Q and R are co-operating processes satisfying Mutual Exclusion condition. Then, if the process Q is executing in its critical section then

Q. A process residing in Main Memory and Ready and Waiting for execution, is kept on

Q. At a particular time of computation, the value of a counting semaphore is 10. Then 12 P operations and “x” V operations were performed on this semaphore. If the final value of semaphore is 7, x will be: