473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Does PHP process requests sequentially on one CPU?

With ASP.NET I've found that request are processed sequentially, one at
a time, at least on a server with one CPU. If one request blocks for
some reason, maybe on a long database query, then all users must wait
until it completes, for their request to process.

This leaves me wondering about PHP running on IIS and Window. Does this
hold true for PHP also?

What about PHP on Unix? Does this allow true simultaneous processing of
all requests when the server has a single CPU?

Thanks for your help.
Jul 17 '05 #1
3 2550
"Bruce W.1" <no@direct.email> wrote in message
news:40***************@direct.email...
With ASP.NET I've found that request are processed sequentially, one at
a time, at least on a server with one CPU. If one request blocks for
some reason, maybe on a long database query, then all users must wait
until it completes, for their request to process.

This leaves me wondering about PHP running on IIS and Window. Does this
hold true for PHP also?

What about PHP on Unix? Does this allow true simultaneous processing of
all requests when the server has a single CPU?

Thanks for your help.


This is a Windows/IIS issue, I forget where, but you can change the
threading model I believe.

--
Mike Bradley
http://www.gzentools.com -- free online php tools
Jul 17 '05 #2
On Fri, 06 Feb 2004 11:28:41 -0500, "Bruce W.1" <no@direct.email> wrote:
With ASP.NET I've found that request are processed sequentially, one at
a time, at least on a server with one CPU. If one request blocks for
some reason, maybe on a long database query, then all users must wait
until it completes, for their request to process.

This leaves me wondering about PHP running on IIS and Window. Does this
hold true for PHP also?

What about PHP on Unix? Does this allow true simultaneous processing of
all requests when the server has a single CPU?


This almost certainly depends on your host webserver. Apache on Unix spawns
multiple processes to serve requests, and so they would timeshare as usual on a
single CPU. On Windows it spawns multiple threads - which are also timeshared
simultanously. In both cases, anything blocking would almost certainly be
yielded by the OS scheduler to another process/thread.

I have no idea about the IIS process/thread model - is it documented?

I don't think it's a PHP issue, though.

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>
Jul 17 '05 #3
Sounds more like a locking issue, or perhaps a lisencing issue.

Uzytkownik "Bruce W.1" <no@direct.email> napisal w wiadomosci
news:40***************@direct.email...
With ASP.NET I've found that request are processed sequentially, one at
a time, at least on a server with one CPU. If one request blocks for
some reason, maybe on a long database query, then all users must wait
until it completes, for their request to process.

This leaves me wondering about PHP running on IIS and Window. Does this
hold true for PHP also?

What about PHP on Unix? Does this allow true simultaneous processing of
all requests when the server has a single CPU?

Thanks for your help.

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ilia | last post by:
Hi folks, I have some problems with ASP.NET Session State. The following simple program runs well if the Session State set as "InProc". If I switch to "SQLServer", the changes, made by the...
3
by: CG | last post by:
I have a VS .NET 2003 web service project which references a Managed C++ assembly. The managed C++ assembly in turn uses some unmanaged code. Because of some restriction in the unmanaged...
7
by: Devron Blatchford | last post by:
Hi there, I am trying to develop a small menu application to run on an RF network, we are using a wavelink server to communicate with our rf scanners and run VB.NET applications on our server...
0
by: ob | last post by:
The situation I have is that I have a long running process (that takes 15 min to process) kicked off from an ASP.NET page. I launch a thread and kick of the process and return instantly. I store...
0
by: ob | last post by:
The situation I have is that I have a long running process (that takes 15 min to process) kicked off from an ASP.NET page. I launch a thread and kick of the process and return instantly. I store...
2
by: Alex | last post by:
Hello, All. I encouraged some strange behaviour of either IIS, ASP.NET, IE or donn't know what... I have a simple wait.aspx page private void Page_Load(object sender, System.EventArgs e) {...
113
by: John Nagle | last post by:
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside...
29
by: zalek | last post by:
I am writing application with Ajax in sync mode - xmlHttp.open("GET", url, false). I noticed that in FireFox handler doesn't starts. It starts when I use xmlHttp.open("GET", url,true). I need to...
7
by: =?Utf-8?B?Vkg=?= | last post by:
Hi, all. Need help with what seems to be either connection, or threading problem in my ASP.NET 2.0 application. The gist of the problem is this: IHttpHandler in my application serves an HTML...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.