ok
Direktori : /home2/selectio/public_html/myclassicfit.com-1/app/CPU/ |
Current File : /home2/selectio/public_html/myclassicfit.com-1/app/CPU/async-web-request.php |
<?php namespace App\CPU; class AsyncWebRequest extends \Thread { public function __construct($arg) { $this->arg = $arg; } public function run() { if ($this->arg) { $sleep = mt_rand(1, 10); printf('%s: %s -start -sleeps %d' . "\n", date("g:i:sa"), $this->arg, $sleep); sleep($sleep); printf('%s: %s -finish' . "\n", date("g:i:sa"), $this->arg); } } }