https://github.com/medeirosinacio/php-exec-multithread
A thread implementation in PHP using the exec function.
https://github.com/medeirosinacio/php-exec-multithread
multi-threading php php-executor php-multi-process php-package php7
Last synced: 14 days ago
JSON representation
A thread implementation in PHP using the exec function.
- Host: GitHub
- URL: https://github.com/medeirosinacio/php-exec-multithread
- Owner: medeirosinacio
- License: mit
- Created: 2020-04-16T18:34:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-16T18:54:09.000Z (almost 6 years ago)
- Last Synced: 2024-04-20T13:35:33.020Z (almost 2 years ago)
- Topics: multi-threading, php, php-executor, php-multi-process, php-package, php7
- Language: PHP
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Exec Multithread
###### php-exec-multithread
A thread implementation in PHP using the exec function.
Send job to worker with data:
```
$thread = new ExecMultithread();
$thread->setProjectRoot('./');
for ($i = 0; $i < 5; $i++) {
$data = "Bla Bla Bla... ID " . md5(rand(0, 5000));
$thread->startProcess('worker', $data);
}
$thread->getProcessesInfo();
```
get data worker:
```
$data = ExecMultithread::convertData($argv[1])
```