pcntl_fork() race condition?

This is a discussion on pcntl_fork() race condition? within the PHP Language forums, part of the PHP Programming Forums category; I am using php 5.0.3 and I have a class that I fork, the class works fine independently ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-02-2005
doug
 
Posts: n/a
Default pcntl_fork() race condition?

I am using php 5.0.3 and I have a class that I fork, the class works
fine independently and is very memory efficent, but when I fork more
than one process php races and I get a process that takes up 99% of the
CPU, is there a way to determine why these processes are racing? If I
do 4 processes all 3 processes will complete and the last will spike to
99% 5/4 etc.. etc..

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:39 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0