Advanced C#
Q95 / 100

What is the .NET green thread (Task) versus OS thread performance model?

Correct! Well done.

Incorrect.

The correct answer is B) Tasks use the thread pool: creating a Task costs microseconds; creating an OS thread costs milliseconds and ~1MB stack. Millions of Tasks can exist; thousands of threads struggle

B

Correct Answer

Tasks use the thread pool: creating a Task costs microseconds; creating an OS thread costs milliseconds and ~1MB stack. Millions of Tasks can exist; thousands of threads struggle

Explanation

Thread pool reuse amortizes thread creation overhead. async/await enables millions of concurrent I/O operations with just a handful of OS threads.

Progress
95/100