Which of the following correctly explains how Python’s asyncio event loop executes coroutines?

Python Professional Hard

Python Professional — Hard

Which of the following correctly explains how Python’s asyncio event loop executes coroutines?

Key points

  • Coroutines in asyncio are cooperative, not running in separate OS threads.
  • asyncio does not use multiple processes for true parallelism.
  • Coroutines yield control at await points, not preemptively at fixed intervals.

Ready to go further?

Related questions