1

I am coding my own image hosting script.I think that parallel processing will definitely help to make full use of the hardware (CPU with multi cores , lots of ram) in a production environment when the user upload many images at one time.Size of images can be a maximum of 10mb.

How far i am correct about my assumption about parallel processing? How can i implement parallel processing or multi threading with php to make multiple file uploads more efficient

1
  • How about enqueuing your uploads into a table with a status flag and letting a cron job task take care of a certain amount of uploads at the same time? Commented Apr 14, 2014 at 7:18

1 Answer 1

1

in PHP there is no "real" multi-threading. But you can help yourself out with extensions like pthreads.

Check this website out:

http://pthreads.org/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.