Question

You are designing a system where multiple threads need to access and modify a shared counter variable. What is a critical concern you must address to ensure correctness?

A Memory leaks
B Race conditions
C Stack overflow
D Infinite loops
E Deadlock
Practice Next

Hey! Ask a query