Quiz on Concurrency Bugs
It's quiz time! Answer the following questions to test your knowledge and understanding of different concurrency related bugs.
1
What could be a potential issue if the following two threads run simultaneously?
Thread 1::
if (ptr) {
ptr -> val = 1;
}
Thread 2::
ptr = NULL;
A)
Potential of a deadlock
B)
Atomicity violation
C)
Order violation
D)
None of the above
Question 1 of 50 attempted
Get hands-on with 1400+ tech skills courses.