ok
Direktori : /proc/self/root/home2/selectio/www/bharath/3idiotsgadgetstore.in/app/CPU/ |
Current File : //proc/self/root/home2/selectio/www/bharath/3idiotsgadgetstore.in/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); } } }