← Questions

Typed task lock for mutually exclusive job types

0
Microsoft AIMicrosoftOpenAICodingLast asked Sep 2026

A coding interview question asked in OpenAI's agentic coding (beta) round and at Microsoft AI and Microsoft, last asked Sep 2026. It tests concurrency, locks and condition variables.

Some jobs on a shared accelerator pool must not run alongside jobs of a different kind. Each job runs on its own thread and has one of two types: "gen" or "score".

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • OpenAI · Agentic coding (beta) · Last asked Sep 2026An existing codebase and changes too large to write by hand; you work through them with an AI coding agent · An AI coding agent is expected
  • Microsoft AI · Coding · Last asked Sep 2026Live coding
  • Microsoft · Coding · Last asked Mar 202660 min · Ten to fifteen minutes of behavioral questions, then coding in HackerRank where you write a main and make the tests pass; usually three rounds · No AI unless the interviewer invites it; some 2026 loops add a round where you bring your own AI agent

What it tests

concurrency · locks · condition variables · fairness

Your code and the AI tutor open when you unlock this question.