15 Lock-Free questions from the Concurrency bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.a strategy that proceeds without locking, assuming no conflict, then validates at commit time and retries if another writer interfered
B.the strongest non-blocking guarantee, ensuring every thread finishes its operation in a bounded number of steps regardless of others
C.an atomic instruction that updates a location only if it still holds an expected value, reporting success or failure to the caller
D.a subtle bug where a value changes from A to B and back to A, fooling a compare-and-swap into thinking nothing changed
Answer + AI explanation with Pro
2. Which term means: "an atomic instruction that updates a location only if it still holds an expected value, reporting success or failure to the caller"?
Mid
A.ABA problem
B.Wait-free algorithm
C.Lock-free algorithm
D.Compare-and-swap
Answer + AI explanation with Pro
3. Which statement is correct?
Mid
A.Compare-and-swap — a non-blocking design guaranteeing that at least one thread in the system always makes progress, so no single failure stalls everyone
B.Compare-and-swap — an atomic instruction that updates a location only if it still holds an expected value, reporting success or failure to the caller
C.Compare-and-swap — the strongest non-blocking guarantee, ensuring every thread finishes its operation in a bounded number of steps regardless of others
D.Compare-and-swap — a subtle bug where a value changes from A to B and back to A, fooling a compare-and-swap into thinking nothing changed
Answer + AI explanation with Pro
4. What is Optimistic concurrency?
Senior
A.a non-blocking design guaranteeing that at least one thread in the system always makes progress, so no single failure stalls everyone
B.the strongest non-blocking guarantee, ensuring every thread finishes its operation in a bounded number of steps regardless of others
C.a strategy that proceeds without locking, assuming no conflict, then validates at commit time and retries if another writer interfered
D.a subtle bug where a value changes from A to B and back to A, fooling a compare-and-swap into thinking nothing changed
Answer + AI explanation with Pro
5. Which term means: "a strategy that proceeds without locking, assuming no conflict, then validates at commit time and retries if another writer interfered"?
Senior
A.ABA problem
B.Optimistic concurrency
C.Lock-free algorithm
D.Compare-and-swap
Answer + AI explanation with Pro
6. Which statement is correct?
Senior
A.Optimistic concurrency — a strategy that proceeds without locking, assuming no conflict, then validates at commit time and retries if another writer interfered
B.Optimistic concurrency — a non-blocking design guaranteeing that at least one thread in the system always makes progress, so no single failure stalls everyone
C.Optimistic concurrency — an atomic instruction that updates a location only if it still holds an expected value, reporting success or failure to the caller
D.Optimistic concurrency — the strongest non-blocking guarantee, ensuring every thread finishes its operation in a bounded number of steps regardless of others
Answer + AI explanation with Pro
7. What is Lock-free algorithm?
Senior
A.a strategy that proceeds without locking, assuming no conflict, then validates at commit time and retries if another writer interfered
B.a non-blocking design guaranteeing that at least one thread in the system always makes progress, so no single failure stalls everyone
C.a subtle bug where a value changes from A to B and back to A, fooling a compare-and-swap into thinking nothing changed
D.an atomic instruction that updates a location only if it still holds an expected value, reporting success or failure to the caller
Answer + AI explanation with Pro
8. Which term means: "a non-blocking design guaranteeing that at least one thread in the system always makes progress, so no single failure stalls everyone"?
Senior
A.Lock-free algorithm
B.Compare-and-swap
C.Wait-free algorithm
D.ABA problem
Answer + AI explanation with Pro
9. Which statement is correct?
Senior
A.Lock-free algorithm — a subtle bug where a value changes from A to B and back to A, fooling a compare-and-swap into thinking nothing changed
B.Lock-free algorithm — a non-blocking design guaranteeing that at least one thread in the system always makes progress, so no single failure stalls everyone
C.Lock-free algorithm — the strongest non-blocking guarantee, ensuring every thread finishes its operation in a bounded number of steps regardless of others
D.Lock-free algorithm — an atomic instruction that updates a location only if it still holds an expected value, reporting success or failure to the caller
Answer + AI explanation with Pro
10. What is Wait-free algorithm?
Senior
A.an atomic instruction that updates a location only if it still holds an expected value, reporting success or failure to the caller
B.a strategy that proceeds without locking, assuming no conflict, then validates at commit time and retries if another writer interfered
C.the strongest non-blocking guarantee, ensuring every thread finishes its operation in a bounded number of steps regardless of others
D.a non-blocking design guaranteeing that at least one thread in the system always makes progress, so no single failure stalls everyone
Answer + AI explanation with Pro
11. Which term means: "the strongest non-blocking guarantee, ensuring every thread finishes its operation in a bounded number of steps regardless of others"?
Senior
A.Wait-free algorithm
B.Optimistic concurrency
C.Compare-and-swap
D.ABA problem
Answer + AI explanation with Pro
12. Which statement is correct?
Senior
A.Wait-free algorithm — a subtle bug where a value changes from A to B and back to A, fooling a compare-and-swap into thinking nothing changed
B.Wait-free algorithm — a strategy that proceeds without locking, assuming no conflict, then validates at commit time and retries if another writer interfered
C.Wait-free algorithm — a non-blocking design guaranteeing that at least one thread in the system always makes progress, so no single failure stalls everyone
D.Wait-free algorithm — the strongest non-blocking guarantee, ensuring every thread finishes its operation in a bounded number of steps regardless of others
Answer + AI explanation with Pro
13. What is ABA problem?
Senior
A.a subtle bug where a value changes from A to B and back to A, fooling a compare-and-swap into thinking nothing changed
B.an atomic instruction that updates a location only if it still holds an expected value, reporting success or failure to the caller
C.the strongest non-blocking guarantee, ensuring every thread finishes its operation in a bounded number of steps regardless of others
D.a strategy that proceeds without locking, assuming no conflict, then validates at commit time and retries if another writer interfered
Answer + AI explanation with Pro
14. Which term means: "a subtle bug where a value changes from A to B and back to A, fooling a compare-and-swap into thinking nothing changed"?
Senior
A.ABA problem
B.Optimistic concurrency
C.Compare-and-swap
D.Wait-free algorithm
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.ABA problem — a subtle bug where a value changes from A to B and back to A, fooling a compare-and-swap into thinking nothing changed
B.ABA problem — an atomic instruction that updates a location only if it still holds an expected value, reporting success or failure to the caller
C.ABA problem — a strategy that proceeds without locking, assuming no conflict, then validates at commit time and retries if another writer interfered
D.ABA problem — the strongest non-blocking guarantee, ensuring every thread finishes its operation in a bounded number of steps regardless of others
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Lock-Free question come with Pro.