Skip to content
Sharp

Engineering Interviews · interview question

In a code review, which of the following is a severe concurrency bug?

Multiple choiceHardchapter-20-curatedpremiumengineering-interviewslive-coding-strategy
Choose one answer
Answer and explanation

Correct answer

B. Accessing a shared variable without synchronization

Why

Accessing a shared variable without proper synchronization can lead to data races and unpredictable behavior, especially in a multi-threaded environment. This type of concurrency bug is severe as it can cause the application to behave incorrectly.

Test yourself on Engineering Interviews

A free test with instant, explained results. No account needed.

Start free test
All Engineering Interviews questions →