JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
In-Class 6
In-Class Activity to be completed in class.
Note: For this activity and all other activities, you should only make 1 submission (your first submission is always the one graded)
Sign in to Google
to save your progress.
Learn more
* Indicates required question
First Name
*
Your answer
Last Name
*
Your answer
E-mail (Please use Northeastern e-mail)
*
Your answer
Which section of Systems are you in?
*
Mike
Which of these is an example of a data race?
1 point
Depositing and withdrawing money at the same time in which there is no synchronization (i.e. locks to protect a resource)
A continuous stream of cars at an intersection, such that you can never make a right turn.
Clear selection
What is a deadlock?
1 point
An error in which two or more threads access a shared resource modifying it at the same time, such that interleaving of instructions return a non-deterministic result.
A situation in which a thread cannot make progress due to a lock being held by another thread.
Clear selection
What is a critical section?
1 point
A code segment that is protected by a lock, such that any shared variables can only be accessed by one thread at a time. We say this section of code is thus executed sequentially, and this is an 'atomic' or non-divisible action.
Clear selection
What is the difference between a semaphore and a mutex?
1 point
There is no difference. A mutex is simply a special case of a semaphore or binary semaphore.
Clear selection
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Privacy Policy
Forms