Skip to content
Sharp

Reactive Streams · interview question

How does Spring WebFlux ensure efficient use of CPU resources?

Multiple choiceMediumchapter-19-curatedpremiumreactive-streamsnon-blocking-i-o-event-loops
Choose one answer
Answer and explanation

Correct answer

B. By utilizing exactly one event loop thread per CPU core

Why

Spring WebFlux uses the same number of event loop threads as there are CPU cores, ensuring that each core is efficiently utilized without the overhead of context switching.

Test yourself on Reactive Streams

A free test with instant, explained results. No account needed.

Start free test
All Reactive Streams questions →