Multiple requests at one time

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
swraman
Forum Commoner
Posts: 58
Joined: Thu Nov 06, 2008 12:33 am

Multiple requests at one time

Post 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
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Multiple requests at one time

Post by VladSun »

There are 10 types of people in this world, those who understand binary and those who don't
swraman
Forum Commoner
Posts: 58
Joined: Thu Nov 06, 2008 12:33 am

Re: Multiple requests at one time

Post by swraman »

Thanks
Post Reply