Concurrency interview questions

15 Concurrency questions from the C++ 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 std::thread?

Junior
  1. A.undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
  2. B.a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
  3. C.a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
  4. D.an object representing a single thread of execution that begins running its callable on construction and must be joined or detached

Answer + AI explanation with Pro

2. Which term means: "an object representing a single thread of execution that begins running its callable on construction and must be joined or detached"?

Junior
  1. A.std::condition_variable
  2. B.std::atomic
  3. C.std::thread
  4. D.Data race

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.std::thread — undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
  2. B.std::thread — a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
  3. C.std::thread — a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
  4. D.std::thread — an object representing a single thread of execution that begins running its callable on construction and must be joined or detached

Answer + AI explanation with Pro

4. What is std::mutex?

Mid
  1. A.a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
  2. B.a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers
  3. C.undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
  4. D.an object representing a single thread of execution that begins running its callable on construction and must be joined or detached

Answer + AI explanation with Pro

5. Which term means: "a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races"?

Mid
  1. A.std::mutex
  2. B.std::atomic
  3. C.std::thread
  4. D.std::condition_variable

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.std::mutex — a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
  2. B.std::mutex — an object representing a single thread of execution that begins running its callable on construction and must be joined or detached
  3. C.std::mutex — a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
  4. D.std::mutex — a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers

Answer + AI explanation with Pro

7. What is std::atomic?

Senior
  1. A.a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
  2. B.an object representing a single thread of execution that begins running its callable on construction and must be joined or detached
  3. C.a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
  4. D.a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers

Answer + AI explanation with Pro

8. Which term means: "a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock"?

Senior
  1. A.Data race
  2. B.std::atomic
  3. C.std::mutex
  4. D.std::thread

Answer + AI explanation with Pro

9. Which statement is correct?

Senior
  1. A.std::atomic — a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
  2. B.std::atomic — a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers
  3. C.std::atomic — undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
  4. D.std::atomic — an object representing a single thread of execution that begins running its callable on construction and must be joined or detached

Answer + AI explanation with Pro

10. What is std::condition_variable?

Senior
  1. A.an object representing a single thread of execution that begins running its callable on construction and must be joined or detached
  2. B.a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
  3. C.undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
  4. D.a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers

Answer + AI explanation with Pro

11. Which term means: "a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers"?

Senior
  1. A.std::condition_variable
  2. B.Data race
  3. C.std::atomic
  4. D.std::thread

Answer + AI explanation with Pro

12. Which statement is correct?

Senior
  1. A.std::condition_variable — a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
  2. B.std::condition_variable — undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
  3. C.std::condition_variable — a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
  4. D.std::condition_variable — a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers

Answer + AI explanation with Pro

13. What is Data race?

Mid
  1. A.a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
  2. B.undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
  3. C.an object representing a single thread of execution that begins running its callable on construction and must be joined or detached
  4. D.a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock

Answer + AI explanation with Pro

14. Which term means: "undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization"?

Mid
  1. A.std::mutex
  2. B.std::condition_variable
  3. C.std::thread
  4. D.Data race

Answer + AI explanation with Pro

15. Which statement is correct?

Mid
  1. A.Data race — a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
  2. B.Data race — a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
  3. C.Data race — a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers
  4. D.Data race — undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization

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 Concurrency 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