Code: Alles auswählen
SetPriorityClass(GetCurrentProcess, HIGH_PRIORITY_CLASS);
Code: Alles auswählen
SetPriorityClass(GetCurrentProcess, HIGH_PRIORITY_CLASS);
Code: Alles auswählen
ShowMessage(IntToStr(fpGetPriority(PRIO_PROCESS,FpGetpid)));
fpSetPriority(PRIO_PROCESS, FpGetpid, -20);
ShowMessage(IntToStr(fpGetPriority(PRIO_PROCESS,FpGetpid)));
Ich hab es selber nicht probiert, könnte mir aber gut vorstellen, dass das dein Problem ist. Probier doch mal dein Programm mit sudo zu starten.Only the superuser can specify a negative N, i.e. increase the rate at which the process is run.