473,769 Members | 5,471 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2569
"Bruce W.1" <no@direct.emai l> 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.emai l> 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.andyhsoftwa re.co.uk/space>
Jul 17 '05 #3
Sounds more like a locking issue, or perhaps a lisencing issue.

Uzytkownik "Bruce W.1" <no@direct.emai l> 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
5453
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 second thread, are lost. Any idea? I use VS.NET 2003 on Windows Server 2003 with hot fixes (as of 30-Oct-2003) and SQL Server 2000 SP 3a.
3
1986
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 (legacy) code, I can only have a aspnet_wp.exe worker process service only one web service request. In other words, after aspnet_wp.exe (wp1) serviced User1's web service request, it should not be used to service
7
5075
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 that repond to the scanner requests. I would like to know if there is a way that I can spawn a process on the server and attach it to the current thread (allow it to take control of the server requests)? Once this spawned app exits it will return...
0
1318
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 information about the thread in the session variable, which allows the user to login later and see what the status of that process is. I would like to use a web garden, however the round robin assignment of requests to the worker processes...
0
882
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 information about the thread in the session variable, which allows the user to login later and see what the status of that process is. I would like to use a web garden, however the round robin assignment of requests to the worker processes...
2
1360
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) { object o = new object();
113
5308
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 the Python world, you're fine. But once you do, things go downhill. MySQLdb has version and platform compatibility problems. So does M2Crypto. The built-in SSL support is weak. Even basic sockets don't quite work right; the socket module...
29
3324
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 use it in sync mode. Any ideas what can I do? Thanks, Zalek.
7
3152
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 page that has two images (image A and image B) in it. Once the HTML page is served, expected behavior is this: 1) receive request for image A, 2) receive request for image B almost at the same time as for A,
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3962
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.