Quiz on Concurrency Bugs

It's quiz time! Answer the following questions to test your knowledge and understanding of different concurrency related bugs.

We'll cover the following...
Technical Quiz
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


1 / 5