ok

Mini Shell

Direktori : /home2/selectio/public_html/ecommerce-website/website/app/CPU/
Upload File :
Current File : /home2/selectio/public_html/ecommerce-website/website/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);
        }
    }
}

Zerion Mini Shell 1.0