note 69215 added to function.pcntl-setpriority
| From: | t dot stobbe at blackdogdev dot com | Date: | Sun, 27 Aug 2006 22:49:55 +0000 |
| Subject: | note 69215 added to function.pcntl-setpriority | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116388@lists.php.net to get a copy of this message | ||
As for the renice function by leandro dot pereira at gmail dot com, this isn't true.
pcntl_setpriority() doesn't set the nice level of a process, but instead sets the base priority
of it. At first glance this might seem like the same thing, but on a system level, they are
actually quite different.
In fact, if you're looking to use pcntl_setpriority() to prioritize your process (a tool or a
daemon or what-not), I wouldn't recomend using setpriority at all, but renice it instead. Let
the system manage priorities and you'll end up with the results you were looking for.
This applies only to POSIX based systems only (as does the function presented by leandro dot pereira
at gmail dot com as well).
----
Server IP: 216.194.113.175
Probable Submitter: 67.172.122.56
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.pcntl-setpriority.php
Edit -- https://master.php.net/note/edit/69215
Del: integrated -- https://master.php.net/note/delete/69215/integrated
Del: useless -- https://master.php.net/note/delete/69215/useless
Del: bad code -- https://master.php.net/note/delete/69215/bad+code
Del: spam -- https://master.php.net/note/delete/69215/spam
Del: non-english -- https://master.php.net/note/delete/69215/non-english
Del: in docs -- https://master.php.net/note/delete/69215/in+docs
Del: other reasons-- https://master.php.net/note/delete/69215
Reject -- https://master.php.net/note/reject/69215
Search -- https://master.php.net/manage/user-notes.php