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 8546847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:07:46+00:00 2026-06-11T13:07:46+00:00

I needed parallel processing in PHP, but PHP doesn’t support it without installing extensions,

  • 0

I needed parallel processing in PHP, but PHP doesn’t support it without installing extensions, so I’m using multi_curl to achieve this.

main.php – Builds an array of urls, which are all process.php with different $_GET parameters. Then executes them all using multi_curl.

process.php – The processing logic for each thread.

I’d just like to know if this is a viable way of doing things. Is this retarded? Does it cause a lot of overhead? Is there a more sensible way of doing this? Thanks.

  • 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-11T13:07:47+00:00Added an answer on June 11, 2026 at 1:07 pm

    https://github.com/krakjoe/pthreads

    Threading for PHP …

    Enjoy …

    To install in unix, you’ll need a Thread Safe version of PHP. Most distros do not package this version so you’ll have to build it yourself.

    A quick description of how to do so would be:

    cd /usr/src
    wget  http://php.net/get/php-5.3.17.tar.bz2/from/us.php.net/mirror
    tar -xf php-5.3.17.tar.bz2
    cd php-5.3.17/ext
    wget https://github.com/krakjoe/pthreads/tarball/master -O pthreads.tar.gz
    tar -xf pthreads.tar.gz
    mv krakjoe-pthreads* pthreads
    cd ../
    ./buildconf --force
    ./configure --enable-maintainer-zts --enable-pthreads --prefix=/usr
    make
    make install
    

    I’d start with that, to build an isolated copy –prefix with a private location, like –prefix=/home/mydir, or some distros have a /usr/src/debug which is a good place for that sort of thing. You’ll obviously want to add –with-mysql and the like, but how you do that depends on your system ( hint, you can use php -i | grep configure > factory.config to save your current php installations configure line and base your custom build of that knowing that any libaries it complains aren’t available are an apt-get|yum install away ).

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

Sidebar

Related Questions

Needed Finfo but deleted msi package, so uninstalled php 5.3.0, downloaded 5.3.2 and installed.
I've been experimenting with multi threading and parallel processing and I needed a counter
I'm using the mclapply function in the multicore package to do parallel processing. It
I needed to store various strings in a map but I wanted to keep
In this this question , I give some background on a parallel language I
Needed to write a server text file as the output of a business process
I needed a background image for a searchbar, something similar to fotolia.com. so I
I needed to change a work item field from PlainText -> String. As I
I needed to retain the words enclosed in brackets and delete the others in
I needed to write a custom module in drupal to help out with my

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.