note 128675 added to parallel-runtime.construct
| From: | MikhailStreltsov at main dot php dot net | Date: | Thu, 06 Jul 2023 12:17:28 +0000 |
| Subject: | note 128675 added to parallel-runtime.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220636@lists.php.net to get a copy of this message | ||
If you create a lot of "Runtime" space and after "run" it - each of them look
like another proccess named Thread - look like a different sandboxes what use personal memory space
and code.
But at one Runtime space you can create and a lot of "run" code inside - all of these
will use one bootstrap content inside and static varibles of object - like it work in one process.
These code will execute one by one and if some "run" will block queue (like sleep or
while(true) function) another will not execute - but the parent (who create Runtime) will not block
in this situation if he not try call "value" method for blocked "Runtime"
thread, because parent will wait in this situation
Different "Runtime" thread can use different threads of CPU Cores and use
"Channel" class for exchange of data over 1 600 000 messages (or closure) in one side
(this time not include read time)
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.159.168 (proxied: 83.220.237.14)
----
Manual Page -- https://php.net/manual/en/parallel-runtime.construct.php
Edit -- https://main.php.net/note/edit/128675
Del: integrated -- https://main.php.net/note/delete/128675/integrated
Del: useless -- https://main.php.net/note/delete/128675/useless
Del: bad code -- https://main.php.net/note/delete/128675/bad+code
Del: spam -- https://main.php.net/note/delete/128675/spam
Del: non-english -- https://main.php.net/note/delete/128675/non-english
Del: in docs -- https://main.php.net/note/delete/128675/in+docs
Del: other reasons-- https://main.php.net/note/delete/128675
Reject -- https://main.php.net/note/reject/128675
Search -- https://main.php.net/manage/user-notes.php