Computer Science Fundamentals
Concurrency & Parallelism
6 practice questions. Free questions open a full answer guide; the rest unlock with Pro.
- What is the difference between concurrency and parallelism?
- Tell me about false sharing — what it is, how you'd recognize it in a multithreaded hot path, and what you'd do about it.Go Pro
- Your service intermittently double-processes an event under load, but the code looks correct in isolation. Walk me through how you'd reason about the concurrency bug and how you'd make the path safe.Go Pro
- What is a race condition and how do you prevent one?Go Pro
- When would you choose optimistic concurrency control over locking a row, and what's the cost when you guess wrong?Go Pro
- What's the difference between a race condition and a deadlock, and how would you diagnose each in a running service?Go Pro
Want questions matched to your role? Paste a job title, job description, or CV for a personalized set, or go Pro to unlock the full bank.