Php is single-threaded Synchronize blocking, how does multithreading of curl batch run?

php is a single-threaded Synchronize blocking, while curl_multi can implement multithreading. Aren"t the two contradictory?
ask the boss to explain, thank you!

Php
Aug.11,2021

the underlying layer is implemented through select IO multiplexing.

single-thread initiating network IO, can push multiple requests to the IO collection, and when an IO event occurs, the response value is read. Here, it is handled by a single thread, and if multiple requests are readable, they can only be processed one by one.

Menu