lopes_andre Posted April 23, 2010 Share Posted April 23, 2010 Hi, I need to write a PHP Script to use with a Crontab. That Crontab will run every 10 minutes. I should use pcntl_fork() to prevent concurrency in database queries, but I don't have sure how to use this PHP function. The reason for use this function is to prevent that if the Crontab don't do the Job in 10 minutes, the next Cronjob will not concur with the job in the background that is running. My question. There are example on how to use this function to prevent database concurrency? Best Regards, Link to comment https://forums.phpfreaks.com/topic/199464-pcntl_fork-how-it-works/ Share on other sites More sharing options...
trq Posted April 23, 2010 Share Posted April 23, 2010 I need to write a PHP Script to use with a Crontab. That Crontab will run every 10 minutes. If all you are doing is database queries, why do you need php? Link to comment https://forums.phpfreaks.com/topic/199464-pcntl_fork-how-it-works/#findComment-1046904 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.