Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8303595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:35:06+00:00 2026-06-08T17:35:06+00:00

So, that’s what I’m trying to do – pretty self-explanatory actually : Initiate X

  • 0

So, that’s what I’m trying to do – pretty self-explanatory actually :

  • Initiate X ‘simultaneous’ processes (each bound to a different php script)
  • Be able to say when all of them are finished

I’ve had a look at various different approaches, and I’m probably going to use exec and background processes. (Something along these lines).

The thing – which I really can’t get my head around – is :

I can’t figure out which is the most efficient way to check whether ALL of the processes are finished (being able to keep an eye on the general progress – e.g. X out of Y finished, is also a must).

What is important is time-efficiency, and – obviously – not causing any unnecessary server overload (so, I suppose any ‘frozen’ while loop checking for live pids, even if at intervals, is out of the question, right?)

ANY suggestions are very much welcome!


P.S.: I’ve initially set this whole thing up with asynchronous Ajax requests starting from the client-side, but I’m currently considering a migration to a non-javascript fully-server-side environment. The issue with parallel-processing though remains…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:35:07+00:00Added an answer on June 8, 2026 at 5:35 pm

    You should investigate the pcntl_fork and related functions. This allows one master process to form a number of child processes and be notified of child exit status.

    http://php.net/manual/en/function.pcntl-fork.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much what I am trying to accomplish. To have each image appear
I'm trying to create an if statement in PHP that prevents a single post
That sounds complicated, doesn't it... actually it's quite easy: I have a multi-language app
That's just my php snippet: $cookies=$_COOKIE['rwt']; $user =mysql_query(SELECT user FROM users WHERE cookies='$cookies'); How
Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I need to read a server controls event, which will
That is I need to get rid of the sess* files that php is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.