Advanced Swift
Q65 / 100

What is the Swift concurrency model's cooperative thread pool?

Correct! Well done.

Incorrect.

The correct answer is B) A fixed-size thread pool matching CPU cores where async tasks yield cooperatively at suspension points, enabling efficient parallelism

B

Correct Answer

A fixed-size thread pool matching CPU cores where async tasks yield cooperatively at suspension points, enabling efficient parallelism

Explanation

Swift's actor runtime uses a cooperative thread pool (default: number of CPUs). Tasks yield at await points rather than blocking threads, maximizing throughput.

Progress
65/100