All challenges
Multiple ChoiceIntermediate 30s

Thread Safety

Choose the best answer for: thread-safe operations
Options
  1. 1list.append is atomic in CPython (single bytecode)
  2. 2Threads never share state and cannot corrupt each other
  3. 3Every Python operation needs explicit locks to be safe
  4. 4All Python operations are atomic and thread-safe by default

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle