Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

medeirosinacio/php-exec-multithread

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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])


About

A thread implementation in PHP using the exec function.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.