Skip to content
Sharp

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)

  1. Which move is the best default when semaphores, timeouts, and cancellation becomes part of this workflow?Multiple choiceMedium
  2. Which naming or modeling choice is strongest for threads for blocking i/o?Multiple choiceMedium
  3. A bug appears around threads for blocking i/o. What is the strongest first debugging move?Multiple choiceMedium
  4. If you wrote a test around processes for cpu work, what should the test prove first?Multiple choiceHard
  5. You cannot rewrite everything today. What is the best incremental improvement around gil judgment?Multiple choiceHard
  6. Which explanation would best help the team align on semaphores, timeouts, and cancellation?Multiple choiceMedium
  7. What is the healthiest performance judgment around processes for cpu work?Multiple choiceHard
  8. What is the healthiest performance judgment around task coordination?Multiple choiceMedium
  9. Which option is the safer default when shipping code around task coordination?Multiple choiceHard
  10. A bug appears around task coordination. What is the strongest first debugging move?Multiple choiceMedium
  11. What is the healthiest performance judgment around threads for blocking i/o?Multiple choiceMedium
  12. What do interviewers usually hear as a strong signal when you discuss task coordination well?Multiple choiceHard
  13. If threads for blocking i/o fails in production, what handling philosophy is strongest?Multiple choiceMedium
  14. A senior interviewer asks for one tradeoff behind task coordination. What is the strongest follow-up?Multiple choiceHard
  15. Which option is the safer default when shipping code around semaphores, timeouts, and cancellation?Multiple choiceHard
  16. What kind of contract clarity matters most for semaphores, timeouts, and cancellation?Multiple choiceHard
  17. What does a strong engineer do when reasoning through task coordination code?Multiple choiceMedium
  18. Which judgment is strongest when choosing a data shape for processes for cpu work?Multiple choiceHard
  19. A teammate submits shaky task coordination code. Which review comment is the strongest?Multiple choiceMedium
  20. Which boundary choice best fits threads for blocking i/o in a maintainable Python system?Multiple choiceMedium
  21. What kind of contract clarity matters most for gil judgment?Multiple choiceHard
  22. A teammate submits shaky threads for blocking i/o code. Which review comment is the strongest?Multiple choiceMedium
  23. Another engineer will maintain this code later. What choice helps the most around processes for cpu work?Multiple choiceHard
  24. Which explanation would sound strongest in an interview when discussing processes for cpu work?Multiple choiceHard
  25. What assumption should be made explicit when working with processes for cpu work?Multiple choiceHard