proc_nice() for Windows
[email protected] (Kalle Sommer Nielsen)
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
Greetings Last week I went to spend some time looking at finding a possible implementation way for proc_nice(). The proc_nice() function is as the name says, a wrapper around the POSIX nice() function to change a process priority. On Windows we can perform a similar operation using the SetProcessPriority() function using one of the *_PRIORITY_CLASS constants. I have attached two patches (for trunk), I had two ideas which is the reason for this; 1) This one implements the functionality directly into proc_nice() to change the priority: http://pastie.org/641993 2) This one implements the functionality into a function called nice(), so other functions inside php and its extensions may use this functionality on Windows and by doing that proc_nice() is automaticlly enabled: http://pastie.org/641995 Comments? I'd like to add this in atleast 6.0.0, but whether Johannes agrees I think we should consider it for 5.3.2 if possible. -- regrads, Kalle Sommer Nielsen [email protected]