Podcast
Questions and Answers
Which of the following statements are correct about synchronization in Go?
Which of the following statements are correct about synchronization in Go?
- The Go language supports go routines, which are lightweight concurrent threads managed by the Go runtime. (correct)
- b. The Go runtime maps a potentially large number of concurrent go routines to a much smaller pool of operating system level threads. (correct)
- c. The default synchronization approach in Go is to communicate by sharing memory.
- d. Go provides communication channels to solve coordination problems. (correct)
Which of the following statements are correct about synchronization in Java?
Which of the following statements are correct about synchronization in Java?
- Java uses the special keyword synchronized to mark methods as critical sections. (correct)
- Java provides wait() and notify() methods that resemble condition variables in the POSIX thread API. (correct)
- Java uses the special keyword exclusive to mark methods as critical sections.
- The mutual exclusion is associated to an object instance in Java. (correct)
Which of the following statements are true for deadlock avoidance?
Which of the following statements are true for deadlock avoidance?
- A safe state is a state from which no deadlock can occur. (correct)
- The banker’s algorithm allows to increase the maximum resource requests of a running process dynamically.
- The banker’s algorithm requires that all active resource allocations are known. (correct)
- The banker’s algorithm avoids deadlocks by granting resource requests only if the resulting state is safe. (correct)
Which of the following statements are true for deadlock detection?
Which of the following statements are true for deadlock detection?
How can deadlocks be prevented from occuring?
How can deadlocks be prevented from occuring?
Which of the following statements are true about the Dining Philosophers problem?
Which of the following statements are true about the Dining Philosophers problem?
Which of the following conditions are necessary for a deadlock?
Which of the following conditions are necessary for a deadlock?
Which of the following statements are true for resource allocation graphs (RAGs)?
Which of the following statements are true for resource allocation graphs (RAGs)?
Flashcards
Go Routines
Go Routines
Lightweight concurrent threads managed by the Go runtime.
Java Synchronization
Java Synchronization
Using the synchronized
keyword to mark critical sections in methods.
Safe State (Deadlock)
Safe State (Deadlock)
A state in which no deadlock can occur.
Deadlock Detection (Graph)
Deadlock Detection (Graph)
Signup and view all the flashcards
Deadlock Prevention
Deadlock Prevention
Signup and view all the flashcards
Dining Philosophers - Starvation
Dining Philosophers - Starvation
Signup and view all the flashcards
Deadlock Necessary Condition
Deadlock Necessary Condition
Signup and view all the flashcards
Resource Allocation Graph (RAG)
Resource Allocation Graph (RAG)
Signup and view all the flashcards