pthreads is an Object Orientated API that allows user-land multi-threading in PHP. It includes all the tools you need to create multi-threaded applications targeted at the Web or the Console. PHP applications can create, read, write, execute and synchronize with Threads, Workers and Threaded objects.
Questions tagged [php-pthread]
35 questions
0
votes
1 answer
PHP ImagickDraw threaded
I'm trying to use ImagickDraw on PHP to draw an image using a very large number (~100,000) of circle() rectangle() etc calls. These are split between the 4 cmyk channels so each channel gets around ~30k calls.
The actual circle() and rectangle()…

ieatpizza
- 464
- 4
- 14
0
votes
0 answers
Trying to multithread SSH connections
I have a bunch of server out there and I endavoured to create a php script to ssh all my servers, collect the last log entry and insert all results into a database.
I am using phpseclib to connect to the server, and one by one it works fine, but…
0
votes
1 answer
Perform multiple simultaneous POST calls to the same API endpoint
I am trying to perform multiple POST REST Call. The catch: doing multiple POST calls at the same time. I am fully aware and have worked with the library guzzle but I haven't figured away to do this properly. I can perform GET calls asynchronously…

MaryCoding
- 624
- 1
- 9
- 31
0
votes
1 answer
How to pass some data to a running thread in PHP?
So let's say I create a thread and detach it from the main process, and start it.
So, after the thread is detached, how is it possible to pass some chunks of data like strings, or ints to the already running thread?
Edit
What I am basically doing is…

Ikari
- 3,176
- 3
- 29
- 34
-1
votes
1 answer
How to inject Doctrine2 into Thread with Symfnony2 in PHP 7.0.2?
Previously it worked with the version PHP 5.6.3, pthreads, Symfony2, Doctrine2, MongoDB and everything worked very well. I decided to migrate to PHP 7.0.2, I installed pthreads, I'm still using Symfony2, Doctrine2 and MongoDB, but multi thread…

Tony Díaz Ramos
- 41
- 4