English
Forum

Prozespriorität settle

 

Jac
de
Lad
Hallöle,

short question: How can I The Prozesspriorität one Profanprogramms Change?

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/26/06  
 



short response...
so:
CompileMarkSeparation
Def GetCurrentProcess(0) !"KERNEL32","GetCurrentProcess"
Def GetPriorityClass(1) !"KERNEL32","GetPriorityClass"
Def SetPriorityClass(2) !"KERNEL32","SetPriorityClass"
Windowtitle "Priorität setzen"
Windowstyle 31
Window 0,0-640,440
SetPriorityClass(GetCurrentProcess(),$80)

While 0=0

    waitinput

08/26/06  
 



...circa NT-based Systemen The priority on Echtzeit ($100) To settle, must You the privilege SeIncreaseBasePriority own and this enable. caution with the Change of Prioritäten! some APIs react very mad at such Spielereien one ought to very know, what does.
 
08/26/06  
 




Jac
de
Lad
thanks!
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/26/06  
 




Jac
de
Lad
Hm, and what mean The subesquent Konstanten and when and where set I tappt im dunkeln one?

THREAD_BASE_PRIORITY_LOWRT = 15; { value that gets a thread to LowRealtime-1 }
THREAD_BASE_PRIORITY_MAX = 2; { maximum thread base priority boost }
THREAD_BASE_PRIORITY_MIN = -2; { minimum thread base priority boost }
THREAD_BASE_PRIORITY_IDLE = -15; { value that gets a thread to idle }

NORMAL_PRIORITY_CLASS = $20;
IDLE_PRIORITY_CLASS = $40;
HIGH_PRIORITY_CLASS = $80;
REALTIME_PRIORITY_CLASS = $100;
I take at times, are for of Andreas beschriebene API

THREAD_PRIORITY_LOWEST = ~THREAD_BASE_PRIORITY_MIN;
THREAD_PRIORITY_BELOW_NORMAL = ~THREAD_PRIORITY_LOWEST + 1;
THREAD_PRIORITY_NORMAL = 0;
THREAD_PRIORITY_HIGHEST = ~THREAD_BASE_PRIORITY_MAX;
THREAD_PRIORITY_ABOVE_NORMAL = ~THREAD_PRIORITY_HIGHEST - 1;
THREAD_PRIORITY_ERROR_RETURN = ~MAXLONG;

THREAD_PRIORITY_TIME_CRITICAL = ~THREAD_BASE_PRIORITY_LOWRT;
THREAD_PRIORITY_IDLE = ~THREAD_BASE_PRIORITY_IDLE;

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/27/06  
 



You wanted The priority your Prozesses Change, these Konstanten relating itself on The priority einzelner Threads - it can Yes possible his, that a Thread of/ one application absolutely More Prozessorzeit get should, as others.[...] 
 
08/27/06  
 




Jörg
Sellmeyer
[quote:c67332c62c=Andreas Hötker]caution with the Change of Prioritäten! some APIs react very mad at such Spielereien [/quote:c67332c62c]
and some users too!
i'd something like sooner not install. straight in Windows XP has the users yourself The Possibility, the einzustellen.
Also is PC usually anyhow unterfordert. If but one Program ungefragt its priority changes and me therefore z.B. one Brennvorgang abschmiert....

have You The Konstanten Schonmal in the Win32.hlp sought? Such too time to SetPriorityClass.
is naturally everything on english but well To durchschauen. I habs though too never needed.
Btw. for such a thing How your Digicam-Assistenten would I not using! The thing reads of USB and is therefore natural slower as if it The Files from the disk reads. on it changes too diePriorität nothing.

Greeting
Jörg
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/27/06  
 



with Prioritäten must one very very pay attention, what there does. program one to that example in the Sicherheitsbereich, functions with To higher priority some APIs not any more and computer or Program crashes.
 
08/27/06  
 



[...]  bid The Possibility Prioritäten on not-NT Betriebsystemen (95/98/ME) To change and auszulesen. there you see too The weight your Konstanten...
 
08/27/06  
 




Jac
de
Lad
@Andreas: thanks. now is (almost) everything clear.

@Jörg: Hm, I had virtual, that a function, The to that example The priority the Übertragung runtersetzt meaningfully is, so the then beautiful in the background walk can, because Profanprogramme of itself from already right prozessorlastig are.
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/27/06  
 




Jörg
Sellmeyer
[quote:a8897376e1=Jacob Liebeck]@Andreas: thanks. now is (almost) everything clear.

@Jörg: Hm, I had virtual, that a function, The to that example The priority the Übertragung runtersetzt meaningfully is, so the then beautiful in the background walk can, because Profanprogramme of itself from already right prozessorlastig are.[/quote:a8897376e1]
As I said - always beautiful whom users ask, b.z.w. it decide let.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/27/06  
 




Jac
de
Lad
would have been I anyhow made!
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/28/06  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.684 Views

Untitledvor 0 min.
E.T.11/10/11

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie