Concurrency interview questions
async def and await, Cancellation, GIL Judgment, Processes For CPU Work, Semaphores, Timeouts, and Cancellation, Task Coordination
175 questions with answers and explanations · 161 flashcards
Questions (page 4 of 4)
- Which move is the best default when semaphores, timeouts, and cancellation becomes part of this workflow?Multiple choiceMedium
- Which naming or modeling choice is strongest for threads for blocking i/o?Multiple choiceMedium
- A bug appears around threads for blocking i/o. What is the strongest first debugging move?Multiple choiceMedium
- If you wrote a test around processes for cpu work, what should the test prove first?Multiple choiceHard
- You cannot rewrite everything today. What is the best incremental improvement around gil judgment?Multiple choiceHard
- Which explanation would best help the team align on semaphores, timeouts, and cancellation?Multiple choiceMedium
- What is the healthiest performance judgment around processes for cpu work?Multiple choiceHard
- What is the healthiest performance judgment around task coordination?Multiple choiceMedium
- Which option is the safer default when shipping code around task coordination?Multiple choiceHard
- A bug appears around task coordination. What is the strongest first debugging move?Multiple choiceMedium
- What is the healthiest performance judgment around threads for blocking i/o?Multiple choiceMedium
- What do interviewers usually hear as a strong signal when you discuss task coordination well?Multiple choiceHard
- If threads for blocking i/o fails in production, what handling philosophy is strongest?Multiple choiceMedium
- A senior interviewer asks for one tradeoff behind task coordination. What is the strongest follow-up?Multiple choiceHard
- Which option is the safer default when shipping code around semaphores, timeouts, and cancellation?Multiple choiceHard
- What kind of contract clarity matters most for semaphores, timeouts, and cancellation?Multiple choiceHard
- What does a strong engineer do when reasoning through task coordination code?Multiple choiceMedium
- Which judgment is strongest when choosing a data shape for processes for cpu work?Multiple choiceHard
- A teammate submits shaky task coordination code. Which review comment is the strongest?Multiple choiceMedium
- Which boundary choice best fits threads for blocking i/o in a maintainable Python system?Multiple choiceMedium
- What kind of contract clarity matters most for gil judgment?Multiple choiceHard
- A teammate submits shaky threads for blocking i/o code. Which review comment is the strongest?Multiple choiceMedium
- Another engineer will maintain this code later. What choice helps the most around processes for cpu work?Multiple choiceHard
- Which explanation would sound strongest in an interview when discussing processes for cpu work?Multiple choiceHard
- What assumption should be made explicit when working with processes for cpu work?Multiple choiceHard