-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathall-load.php
More file actions
32 lines (26 loc) · 1.11 KB
/
Copy pathall-load.php
File metadata and controls
32 lines (26 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// +----------------------------------------------------------------------
// | Program:multi-process
// +----------------------------------------------------------------------
// | Date: 2023/3/4 0004
// +----------------------------------------------------------------------
// | Author: js
// +----------------------------------------------------------------------
// | CreatedBy: phpStorm
// +----------------------------------------------------------------------
error_reporting(E_ALL);
include dirname(__DIR__) . '/src/autoload.php';
//include 'vendor/autoload.php';
use phpth\process\Process;
use phpth\process\supply\Call;
use phpth\process\supply\ChildRestart;
use phpth\process\supply\Status;
$p = new Process();
$p->childRestart = ChildRestart::EXIT_ANY;
$p->name = 'main load';
$e = $p->runCall(function(){
while (true)
str_shuffle(str_shuffle(str_shuffle(str_shuffle(str_shuffle(str_shuffle(str_shuffle(str_shuffle(str_shuffle(str_shuffle(bin2hex(random_bytes(50))))))))))));
}, param: [1,2,3,4,5,6,7,8], num:Call::PROCESS_DATA_DISPATCH, name: 'test');
$p->stopChildOnFinish = false;
$p->waitExecutor($e);