CIS 486 TEST 4 STUDY GUIDE LATEST UPDATED
True or false: A critical section can be a shared variable or data structure -
ANSWER False
True or false: A busy waiting solution for mutual exclusion can cause the
priority inversion problem - ANSWER True
True or false: Semaphore functions P() and V() must be atomic - ANSWER
True
True or false: The monitor method for synchronization and mutual exclusion is
a lower level construct then the semaphores therefore it gives more control to
the programmers - ANSWER False
True or false: I would modify thread.[cc|h] to implement the multi‐level priority
scheduling in Nachos - ANSWER True in addition to scheduler.cc
True or false: A page fault will require the current process (the faulting process)
to wait in the I/O queue - ANSWER True
True or false: Deadlock avoidance methods let deadlock occur, they they detect
and resolve them - ANSWER False
True or false: In deadlock avoidance, an unsafe state is a state that deadlock will
happen - ANSWER False
True or false: The deadlock prevention method tries to check if granting a
resource to process leads to a safe or unsafe state, each time a resource request
is made - ANSWER False
True or false: Circular wait deadlocks can be prevented with the policy of
granting resources in increasing their order of their IDs - ANSWER True
Why does it need mutual exclusion and synchronization among multiple
processes/threads? - ANSWER 1.) Processes or threads share some variables or
True or false: A critical section can be a shared variable or data structure -
ANSWER False
True or false: A busy waiting solution for mutual exclusion can cause the
priority inversion problem - ANSWER True
True or false: Semaphore functions P() and V() must be atomic - ANSWER
True
True or false: The monitor method for synchronization and mutual exclusion is
a lower level construct then the semaphores therefore it gives more control to
the programmers - ANSWER False
True or false: I would modify thread.[cc|h] to implement the multi‐level priority
scheduling in Nachos - ANSWER True in addition to scheduler.cc
True or false: A page fault will require the current process (the faulting process)
to wait in the I/O queue - ANSWER True
True or false: Deadlock avoidance methods let deadlock occur, they they detect
and resolve them - ANSWER False
True or false: In deadlock avoidance, an unsafe state is a state that deadlock will
happen - ANSWER False
True or false: The deadlock prevention method tries to check if granting a
resource to process leads to a safe or unsafe state, each time a resource request
is made - ANSWER False
True or false: Circular wait deadlocks can be prevented with the policy of
granting resources in increasing their order of their IDs - ANSWER True
Why does it need mutual exclusion and synchronization among multiple
processes/threads? - ANSWER 1.) Processes or threads share some variables or