proc_nice() for Windows

From: Date: Mon, 05 Oct 2009 07:22:02 +0000
Subject: proc_nice() for Windows
Groups: php.internals.win 
Request: Send a blank email to internals-win+get-633@lists.php.net to get a copy of this message
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 kalle@php.net

« previous php.internals.win (#633) next »