Answer the question
In order to leave comments, you need to log in
Multithreading in JSON PHP?
I made a handler that accesses a specific http link and receives a json response. It works very slowly, how to make it multi-threaded so that it runs a bunch of requests at the same time? Or is php single-threaded and you can't implement it that way?
Answer the question
In order to leave comments, you need to log in
Or is php single-threaded and you can't implement it that way?
What does slow mean, find out the reason for this behavior, maybe the server where you send the request is slowly processing it.
Multithreading doesn't exist in PHP, but it can be "emulated" - 1 , 2 and so on, whatever Google says.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question