RE: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processe s
| From: | David Buerer | Date: | Mon, 22 Jul 2002 21:29:38 +0000 |
| Subject: | RE: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processe s | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108938@lists.php.net to get a copy of this message | ||
How to I inovoke a new Thread from the middle of a PHP script?
-----Original Message-----
From: Paul Maine [mailto:pmaine@austin.rr.com]
Sent: Monday, July 22, 2002 10:08 AM
To: David Buerer; php-general@lists.php.net
Subject: RE: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processes
You can use threads with NT to accomplish what you are asking.
-----Original Message-----
From: David Buerer [mailto:david@pladesigns.com]
Sent: Monday, July 22, 2002 11:29 AM
To: 'php-general@lists.php.net'
Subject: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processes
I've got effectivly a glorified chat server which upon the arrival of a
message thorugh a socket connection goes off and runs a bunch of database
processed. My questions is this: How can I seperate the database
processing into a seperate processor process? I really don't want the chat
server to have to wait until after the database processing is done to go
intercept and process another request--this just doesn't seem right. I want
the chat server process to be able to deal with getting and receiving
messages, and another process to deal with the database processing. That
way if one of the processes get's slow, the other isn't affected. Something
like the fork command would work really well, but fork doesn't exist in NT.
Anyone have any ideas?
I'm running Windows NT4.0 sp6a
Apache Server 1.3.xx
MySQL
and of course, PHP 4.2.1