Quiz on Locked Data Structures

It's quiz time! Answer the following questions to test your knowledge and understanding of locked data structures.

1

What is wrong with using a single lock to ensure mutual exclusion for updating a counter in a multi-threaded program?

A)

This technique is suboptimal and does not work all the time

B)

This technique could cause starvation

C)

This technique does not scale well with respect to number of threads

D)

None of the above

Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.