Multiple requests at one time
Posted: Mon Mar 15, 2010 3:55 am
Hi,
I was wondering what happens if PHP receives two requests to run a script at the same time?
does it complete one request at a time?
More specifically, I am using the fread() and fwrite() commands. It will be impossible for fwrite to be called while fread is using the stream in question, correct? And vice versa?
If the fread script gets called at the same time as the fwrite one, will it complete one first completely before starting the other? Or does it employ some sort of multi threading abilities?
Thanks
Raman
I was wondering what happens if PHP receives two requests to run a script at the same time?
does it complete one request at a time?
More specifically, I am using the fread() and fwrite() commands. It will be impossible for fwrite to be called while fread is using the stream in question, correct? And vice versa?
If the fread script gets called at the same time as the fwrite one, will it complete one first completely before starting the other? Or does it employ some sort of multi threading abilities?
Thanks
Raman