D
D
Dmitry Rybin2019-02-02 19:36:11
PHP
Dmitry Rybin, 2019-02-02 19:36:11

Why does the php binary use only 1 cpu core?

Hello, I own several Minecraft servers. The game core that I use is written in php. A long time ago I ran into a performance problem. For one directory, as I was told, the binary allocates only one processor core. Because of this, you have to create locations with different ports. How to use the full capacity of the equipment? PHP 7.0.1 binary5c55c675b4dd5102913332.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Syomov, 2019-02-02
@mb_of

Only by rewriting the script so that it spawns child processes by the number of cores or even more, and parallelizes its tasks between them. This cannot be done by external means.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question