Multiple choice Quiz Flashcards
q3. Which of these are abstractions that will be covered in the course?
Shared memory
Consensus
Reliable broadcast
q3. Communication between components in our programming model can be done by:
Sending and receiving messages (only)
The event-based programming model can only communicate using events/messages, and doesn’t have shared variables.
q3. Events in our model can be:
Messages
Timers
Conditions (e.g. x == 5 && y < 9)
q3. The interface for a channel component have the following events:
A deliver indication event
A send request event
The events need to have the correct type (request or indication).
q3. Which of the following should be part of a service specifications?
Service interface (API) The required system model Correctness properties
The specification only describes “what”, not “how”.
q3. The service API describes
Responses (indication events)
Requests (request events)
q3. A safety property states that
Nothing bad ever happens
q3. A liveness property states that
Something good eventually happens
q3. Is it the case that any property can be described as a conjunction of a safety property and a liveness property?
True
This has been proven formally
q3. Safety can only be satisfied in infinite time
Safety can be violated in finite time
True
q3. Liveness can only be violated in infinite time
Liveness can be satisfied in finite time
True
q3. If it doesn’t fail in the (entire) execution
A correct process is one which never fails at any point in the execution.
True
q3. In the crash-stop model, processes are not allowed to recover
True
q3. In the crash-recovery model, a process is faulty if
It crashes and never recovers
It crashes and recovers infinitely often
q3. Which of the following models are special cases of the crash-recovery model?
Omission
Crash-stop