Intermediate Go (Golang)
Q85 / 100

What is the net/http server's concurrency model?

Correct! Well done.

Incorrect.

The correct answer is B) Each incoming HTTP connection spawns a goroutine, so handlers run concurrently and must synchronize any shared state

B

Correct Answer

Each incoming HTTP connection spawns a goroutine, so handlers run concurrently and must synchronize any shared state

Explanation

net/http automatically spawns a goroutine per connection. Handlers are called concurrently — protect shared data with mutexes or channels.

Progress
85/100