php, multithreading and other doubts
<p>morning </p>

<p>I have some doubts about the the way php works. I cant find the answer anywhere on books so I thought to hit the stack ;)</p>

<p>so here it goes:</p>

<p>lets assume we have one single server with php+apache installed. Here are my beliefs:</p>

<p>1 - php can handle one request at a time. Doesn't matter if apache can handle more than 1 thread at a time because eventually the invoked php interpreter is single threaded.</p>

<p>2 - from belief 1 follows that I believe if the server receives 4 calls at the same very time these calls are queued up and executed 1 at a time. Who makes the request last gets the response last. </p>

<p>3 - from 1 and 2 follows that if I cron-call a url corresponding to a script that does some heavy-lifting/time consuming stuff I slow down the server up to the moment the script returns.</p>

<p>Whats true? whats false?    </p>

<p>cheers</p>
