Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8236343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:06:18+00:00 2026-06-07T19:06:18+00:00

i use xampp with apache php server i send request A to the server

  • 0

i use xampp with apache php server

i send request A to the server and keep it busy. then before the server finish the execution i send another immediate request B. but the server won’t response to B until it finish the previous execution requested by A, make B on client side keep waiting. so i expect that the server doesn’t automatically multithread the request came from a client. my question is

  1. is that

    the client is meant to receive the response of previous request before the
    next request can be sent? i try to set the ajax to synchronous and it still doesnt work

    OR

    we can use php multithreading feature to deal with it

  2. if there is a way, can we share the resource among the requests? let say req A put some value into $_SESSION and req B want to read it

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:06:19+00:00Added an answer on June 7, 2026 at 7:06 pm

    Make sure you don’t confuse the idea of a particular PHP process being multi-threaded with the web server itself being multi-threaded. PHP doesn’t really support multi-threading from within PHP code. However, the server is multi-threaded and can be processing multiple PHP requests at the same time.

    When you send off request “A”, the webserver is going to start processing that request in a new thread. When request “B” comes in, the server will start another new thread to handle it. If “B” starts before “A” is finished, then they’ll both be running at the same time, but there’s really no way to synchronize them.

    If “A” needs to be finished before it makes sense to do “B”, you’re really going to need to have the client wait until it hears that “A” is done, then send off request “B”. The usual way to do that is to have the “success” code for the “A” request send off request “B”.

    If you’re wanting “B” to read something out of the session that was set by “A” you definitely need do make sure “A” is finished at the client before doing “B”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use xampp php apache server I can't continue php after exit send response
I use XAMPP on my desktop (Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 MySQL
i use xampp apache to run some of my php files. In one of
I have installed XAMPP server on my system to be able to use PHP.
I use XAMPP 1.7.3. Apache and MySQL installed. Nothing else. Apache installed on default
I'm on Windows Vista Home Premium 64 bit OS. I use Apache Friends XAMPP
I am using Windows 2003 to write some PHP code. I use XAMPP Portable
i have a xampp server and when i want to use Mod_rewrite it redirects
I want to use prosody or maybe another xmpp server to test my xmpp
I am developing on PHP and APACHE on windows xampp environment. I have some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.