I
I
inilim22021-12-14 01:49:04
cmd/bat
inilim2, 2021-12-14 01:49:04

Is it possible to limit the CPU power for a php script through cmd?

Something like:
php script.php cpu max 5%

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wisgest, 2021-12-14
@wisgest

What you wrote is the command line parameters of php itself and have nothing to do with cmd. Please refer to the php documentation.
In cmd, look at setting the process priority with the command start:

LOW Run application with IDLE priority.
BELOWNORMAL Run application with priority class BELOWNORMAL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question