GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

os 6

Adam Whiteside 24 Fragen

Quiz starten

Fragen in diesem Quiz (24)

  1. 1A race condition ____.
    1. Aresults when several threads try to access the same data concurrently
    2. Bresults when several threads try to access and modify the same data concurrently
    3. Cwill result only if the outcome of execution does not depend on the order in which instructions are executed
    4. DNone of the above
  2. 2An instruction that executes atomically ____.
    1. Amust consist of only one machine instruction
    2. Bexecutes as a single, uninterruptible unit
    3. Ccannot be used to solve the critical section problem
    4. DAll of the above
  3. 3A counting semaphore ____.
    1. Ais essentially an integer variable
    2. Bis accessed through only one standard operation
    3. Ccan be modified simultaneously by multiple threads
    4. Dcannot be used to control access to a thread's critical sections
  4. 4A mutex lock ____.
    1. Ais exactly like a counting semaphore
    2. Bis essentially a boolean variable
    3. Cis not guaranteed to be atomic
    4. Dcan be used to eliminate busy waiting
  5. 5In Peterson's solution, the ____ variable indicates if a process is ready to enter its critical section.
    1. Aturn
    2. Block
    3. Cflag[i]
    4. Dturn[i]
  6. 6The first readers-writers problem ____.
    1. Arequires that, once a writer is ready, that writer performs its write as soon as possible.
    2. Bis not used to test synchronization primitives.
    3. Crequires that no reader will be kept waiting unless a writer has already obtained permission to use the shared database.
    4. Drequires that no reader will be kept waiting unless a reader has already obtained permission to use the shared database.
  7. 7A ___ type presents a set of programmer-defined operations that are provided mutual exclusion within it.
    1. Atransaction
    2. Bsignal
    3. Cbinary
    4. Dmonitor
  8. 8____________ occurs when a higher-priority process needs to access a data structure that is currently being accessed by a lower-priority process.
    1. APriority inversion
    2. BDeadlock
    3. CA race condition
    4. DA critical section
  9. 9What is the correct order of operations for protecting a critical section using mutex locks?
    1. Arelease() followed by acquire()
    2. Bacquire() followed by release()
    3. Cwait() followed by signal()
    4. Dsignal() followed by wait()
  10. 10What is the correct order of operations for protecting a critical section using a binary semaphore?
    1. Arelease() followed by acquire()
    2. Bacquire() followed by release()
    3. Cwait() followed by signal()
    4. Dsignal() followed by wait()

Informationen

Beschreibung
Quiz am os 6, erstellt von Adam Whiteside am 24/04/2019.
Sprache
English
Aufrufe
66
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck