Results of 1 - 10 of about 38 for Workers (0.001 sec.)
- The Pool class | PHP 8.3 15079
- The Pool class (PECL pthreads >= 2.0.0) はじめに A Pool is a container for, and controller of, an adjustable number of Workers. Pooling provides a higher level abstraction of the Worker functionality, including the management of references
... the way required by pthreads. クラス概要 class Pool { /* プロパティ */ protected $ size ; protected $ class ; protected $ workers ; protected $ ctor ; protected $ last ; /* メソッド */ public function __construct ( int $size , string $class = ? , array ... ( Threaded $task ): int public function submitTo ( int $worker , Threaded $task ): int } プロパティ size maximum number of Workers this Pool can use class the class of the Worker workers references to Workers ctor the arguments for constructor of new Wo ... rkers last offset in workers of the last Worker used 目次 Pool::collect — Collect references to completed tasks Pool::__construct — Creates a new Pool ...
-
https://man.mtool.work/php/8.3/class.pool.html
- Pool::__construct — Creates a new Pool of Workers | PHP 8.3 12107
- Pool::__construct (PECL pthreads >= 2.0.0) Pool::__construct — Creates a new Pool of Workers 説明 public function Pool::__construct ( int $size , string $class = ? , array $ctor = ? ) Construct a new pool of workers. Pools lazily create the
... hich means new threads will only be spawned when they are required to execute tasks. パラメータ size The maximum number of workers for this pool to create class The class for new Workers. If no class is given, then it defaults to the Worker class. ctor ... An array of arguments to be passed to new workers' constructors 例 例1 Creating Pools <?php class MyWorker extends Worker { public function __construct ( Something $somethi ... 上の例の出力は以下となります。 object(Pool)#1 (6) { ["size":protected]=> int(8) ["class":protected]=> string(8) "MyWorker" ["workers":protected]=> NULL ["work":protected]=> NULL ["ctor":protected]=> array(1) { [0]=> object(Something)#2 (0) { } } ["last":p ...
-
https://man.mtool.work/php/8.3/pool.construct.html
- SqlStatementResult::fetchOne — 単一の行を取得する | PHP 8.3 9921
- SqlStatementResult::fetchOne (No version information available, might only be in Git) SqlStatementResult::fetchOne — 単一の行を取得する 説明 public function mysql_xdevapi\SqlStatementResult::fetchOne (): array 結果セットから一行取得します。
... dbtest" )-> execute (); $session -> sql ( "CREATE DATABASE dbtest" )-> execute (); $session -> sql ( "CREATE TABLE dbtest.workers(name text, age int, job text)" )-> execute (); $session -> sql ( "INSERT INTO dbtest.workers values ('John', 42, 'bricklay ... ), ('Sam', 33, 'carpenter')" )-> execute (); $schema = $session -> getSchema ( "dbtest" ); $table = $schema -> getTable ( "workers" ); $rows = $session -> sql ( "SELECT * FROM dbtest.workers" )-> execute ()-> fetchOne (); print_r ( $rows ); ?> 上の例の出 ...
-
https://man.mtool.work/php/8.3/mysql-xdevapi-sqlstatementresult.fetchone.html
- GearmanWorker::setId — Give the worker an identifier so it can be tracked when ... 9685
- GearmanWorker::setId (No version information available, might only be in Git) GearmanWorker::setId — Give the worker an identifier so it can be tracked when asking gearmand for the list of available workers 説明 public function GearmanWorke
... (); $worker -> setId ( 'test' ); ?> 上の例の出力は、 たとえば以下のようになります。 Run the following command: gearadmin --workers Output: 30 ::3a3a:3361:3361:3a33%976303667 - : test 他のマニュアルの関連ページ FastAPI Server Workers Docker swarm に他のノ ...
-
https://man.mtool.work/php/8.3/gearmanworker.setid.html
- SqlStatementResult::fetchAll — 結果セットから全行取得する | PHP 8.3 9685
- SqlStatementResult::fetchAll (No version information available, might only be in Git) SqlStatementResult::fetchAll — 結果セットから全行取得する 説明 public function mysql_xdevapi\SqlStatementResult::fetchAll (): array 結果セットから全ての行
... dbtest" )-> execute (); $session -> sql ( "CREATE DATABASE dbtest" )-> execute (); $session -> sql ( "CREATE TABLE dbtest.workers(name text, age int, job text)" )-> execute (); $session -> sql ( "INSERT INTO dbtest.workers values ('John', 42, 'bricklay ... ), ('Sam', 33, 'carpenter')" )-> execute (); $schema = $session -> getSchema ( "dbtest" ); $table = $schema -> getTable ( "workers" ); $rows = $session -> sql ( "SELECT * FROM dbtest.workers" )-> execute ()-> fetchAll (); print_r ( $rows ); ?> 上の例の出 ...
-
https://man.mtool.work/php/8.3/mysql-xdevapi-sqlstatementresult.fetchall.html
- Pool::shutdown — Shutdown all workers | PHP 8.3 8585
- Pool::shutdown (PECL pthreads >= 2.0.0) Pool::shutdown — Shutdown all workers 説明 public function Pool::shutdown (): void Shuts down all of the workers in the pool. This will block until all submitted tasks have been executed. パラメータ こ
...
-
https://man.mtool.work/php/8.3/pool.shutdown.html
- Pool::resize — Resize the Pool | PHP 8.3 7720
- Pool::resize (PECL pthreads >= 2.0.0) Pool::resize — Resize the Pool 説明 public function Pool::resize ( int $size ): void Resize the Pool パラメータ size The maximum number of Workers this Pool can create 戻り値 値を返しません。 他のマニュ
...
-
https://man.mtool.work/php/8.3/pool.resize.html
- Swoole\Server::reload — Restart all the worker process. | PHP 8.3 7641
- Swoole\Server::reload (PECL swoole >= 1.9.0) Swoole\Server::reload — Restart all the worker process. 説明 public function Swoole\Server::reload (): bool パラメータ この関数にはパラメータはありません。 戻り値 他のマニュアルの関連ページ Djang
... o uvicorn Docker Docker EE FastAPI FastAPI FastAPI 最初のステップ Docker swarm に他のノードを追加 FastAPI Server Workers ...
-
https://man.mtool.work/php/8.3/swoole-server.reload.html
- Yaf_Application::__destruct — デストラクタ | PHP 8.3 7641
- Yaf_Application::__destruct (Yaf >=1.0.0) Yaf_Application::__destruct — デストラクタ 説明 public function Yaf_Application::__destruct () パラメータ この関数にはパラメータはありません。 戻り値 他のマニュアルの関連ページ Linux JM pthread_key_
... create(3) Vim if_ole Python posix FastAPI Server Workers Python capsule Linux JM clearenv(3) ...
-
https://man.mtool.work/php/8.3/yaf-application.destruct.html
- Yaf_Application::getAppDirectory — アプリケーションディレクトリを取得する | PHP... 7641
- Yaf_Application::getAppDirectory (Yaf >=2.1.4) Yaf_Application::getAppDirectory — アプリケーションディレクトリを取得する 説明 public function Yaf_Application::getAppDirectory (): Yaf_Application パラメータ directory 戻り値 他のマニュアルの関
... 連ページ FastAPI Server Workers Vim if_ole Linux JM yphelper(8) Docker この章で何を学びますか? ...
-
https://man.mtool.work/php/8.3/yaf-application.getappdirectory.html