Page 1 of 1

Multiple requests at one time

Posted: Mon Mar 15, 2010 3:55 am
by swraman
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

Re: Multiple requests at one time

Posted: Mon Mar 15, 2010 6:59 am
by VladSun

Re: Multiple requests at one time

Posted: Mon Mar 15, 2010 7:57 pm
by swraman
Thanks