PHP Classes

Need to run multithreaded scripts in PHP: Multithreaded scripts on Windows

Recommend this page to a friend!
  All requests RSS feed  >  Need to run multithreaded scripts in PHP  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Need to run multithreaded scripts in PHP


Picture of viswa reddy by viswa reddy - 9 years ago (2014-11-12)

Multithreaded scripts on Windows

This request is clear and relevant.
This request is not clear or is not relevant.


I am using a Windows 64 bits system.

Am trying to install the pthread extension but without success.

How can I run multithreaded scripts without install pthread extension? Please help me out.

Ask clarification

1 Recommendation

Multi-threading in PHP: Run emulated parallel threads with HTTP requests

This recommendation solves the problem.
This recommendation does not solve the problem.


Picture of Manuel Lemos by Manuel Lemos Reputation 23325 - 9 years ago (2014-11-14) Comment

In that case you can use a solution that emulates threads by sending HTTP requests to the same Web server.

The script receiving the HTTP request will call the code you want to run in a separate "thread". It also returns any results to the calling script.

You can run many emulated threads like this as your server memory permits, so do not exaggerate creating too many parallel threads.

It is not fastest solution but given your constraints, it will work well.

Recommend package