Chap 6 Flashcards
Deadlock is permanent because none of the events is ever triggered.
TRUE
All deadlocks involve conflicting needs for resources by two or more processes.
TRUE
Interrupts, signals, messages, and information in I/O buffers are all examples of reusable resources.
FALSE
A useful tool in characterizing the allocation of resources to processes is the resource allocation graph.
TRUE
For deadlock to occur, there must not only be a fatal region, but also a sequence of resource requests that has led into the fatal region.
TRUE
An indirect method of deadlock prevention is to prevent the occurrence of a circular wait.
FALSE
If access to a resource requires mutual exclusion then mutual exclusion must be supported by the OS.
TRUE
The OS may preempt the second process and require it to release its resources if a process requests a resource that is currently held by another process.
TRUE
Deadlock avoidance requires knowledge of future process resource requests.
TRUE
An unsafe state is one in which there is at least one sequence of resource allocations to processes that does not result in a deadlock.
FALSE
An atomic operation executes without interruption and without interference.
TRUE
Deadlock avoidance is more restrictive than deadlock prevention.
FALSE
The dining philosopher’s problem can be representative of problems dealing with the coordination of shared resources which may occur when an application includes concurrent threads of execution.
TRUE
A signal is similar to a hardware interrupt but does not employ priorities.
TRUE
A mutex is used to ensure that only one thread at a time can access the resource protected by the mutex.
TRUE
A set of processes is _________ when each process in the set is blocked awaiting an event that can only be triggered by another blocked process in the set.
deadlocked
Examples of _______ include processors, I/O channels, main and secondary memory, devices, and data structures such as files, databases, and semaphores.
reusable resources
With _______ only one process may use a resource at a time and no process may access a resource unit that has been allocated to another process.
mutual exclusion