PHP page execution time is too long, affect other users simultaneous simultaneous access, what to do?

Source: Internet
Author: User
Here's what I'm going to do:
Page long_execute.php Each access will have a longer execution time (generate a report), if at the time of generation, but not finished, another user to access, is not this user will wait for the end of the previous user access (that is, the last report generation must be completed) in order to successfully access? My own test is this:
So is there any way to solve this?
The problem is: does PHP run too long to affect other users to access at the same time?


Reply to discussion (solution)

Theoretically it won't affect you to find out the reason for waiting

I think each user session is independent, what other users are accessing, does not affect my access Ah, such as I and many people to visit https://www.baidu.com/index.php, if someone has a slow speed has not been brushed out, will affect my access? I don't think so. If it will affect, then who still use Baidu AH

I think each user session is independent, what other users are accessing, does not affect my access Ah, such as I and many people to visit https://www.baidu.com/index.php, if someone has a slow speed has not been brushed out, will affect my access? I don't think so. If it will affect, then who still use Baidu AH


Just like the moderator said, you have to find out why you're waiting.

Theoretically it won't affect you to find out the reason for waiting


Oh, yes? Well, I'll try it again.
Give results later

I think each user session is independent, what other users are accessing, does not affect my access Ah, such as I and many people to visit https://www.baidu.com/index.php, if someone has a slow speed has not been brushed out, will affect my access? I don't think so. If it will affect, then who still use Baidu AH


Sorry, I did the wrong test myself!
Thank you!
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.