Atomicity & Memory interview questions

15 Atomicity & Memory 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.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Atomic operation?

Junior
  1. A.an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
  2. B.the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
  3. C.a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
  4. D.an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial

Answer + AI explanation with Pro

2. Which term means: "an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial"?

Junior
  1. A.Atomic operation
  2. B.Visibility
  3. C.Happens-before
  4. D.Memory barrier

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Atomic operation — an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
  2. B.Atomic operation — the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second
  3. C.Atomic operation — the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
  4. D.Atomic operation — an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial

Answer + AI explanation with Pro

4. What is Memory barrier?

Senior
  1. A.the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second
  2. B.the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
  3. C.an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
  4. D.a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates

Answer + AI explanation with Pro

5. Which term means: "an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point"?

Senior
  1. A.Memory barrier
  2. B.Visibility
  3. C.Volatile
  4. D.Atomic operation

Answer + AI explanation with Pro

6. Which statement is correct?

Senior
  1. A.Memory barrier — the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
  2. B.Memory barrier — an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
  3. C.Memory barrier — a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
  4. D.Memory barrier — the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second

Answer + AI explanation with Pro

7. What is Visibility?

Mid
  1. A.a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
  2. B.the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
  3. C.an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
  4. D.the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second

Answer + AI explanation with Pro

8. Which term means: "the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache"?

Mid
  1. A.Memory barrier
  2. B.Visibility
  3. C.Happens-before
  4. D.Volatile

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.Visibility — the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second
  2. B.Visibility — the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
  3. C.Visibility — an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial
  4. D.Visibility — a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates

Answer + AI explanation with Pro

10. What is Happens-before?

Senior
  1. A.the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second
  2. B.a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
  3. C.an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial
  4. D.an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point

Answer + AI explanation with Pro

11. Which term means: "the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second"?

Senior
  1. A.Atomic operation
  2. B.Volatile
  3. C.Visibility
  4. D.Happens-before

Answer + AI explanation with Pro

12. Which statement is correct?

Senior
  1. A.Happens-before — a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
  2. B.Happens-before — an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
  3. C.Happens-before — the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
  4. D.Happens-before — the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second

Answer + AI explanation with Pro

13. What is Volatile?

Mid
  1. A.an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial
  2. B.an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
  3. C.the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
  4. D.a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates

Answer + AI explanation with Pro

14. Which term means: "a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates"?

Mid
  1. A.Memory barrier
  2. B.Visibility
  3. C.Volatile
  4. D.Atomic operation

Answer + AI explanation with Pro

15. Which statement is correct?

Mid
  1. A.Volatile — a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
  2. B.Volatile — an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial
  3. C.Volatile — the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second
  4. D.Volatile — the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache

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 Atomicity & Memory question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers