如何在PHP中解决多个请求,执行时间长

I have a PHP script,

    longProcess...
    print("response");

Inside the longProcess i use time() (instead of sleep) and curl.
I call this php two times.

My goal is:
The first call will run for a long time.
The second call will run for a short time.

But now look like the first call blocking the second call from execution.
The first run for 5 sec, and the second only 1 sec, but the second response receive only after 6 sec.


How can i solve this?