Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi CPU Auslasten (https://www.delphipraxis.net/99932-cpu-auslasten.html)

dominikkv 20. Sep 2007 12:52

Re: CPU Auslasten
 
du erstellst dir ein von TThread abgeleiteten Type:
Delphi-Quellcode:
type
  TMyThread = class(TThread)
  protected
    procedure execute; override;
  end;

// ...


procedure TMyThread.execute;
begin
  // hier deine 100%-methode
end;

procedure Mach100Prozent;
var I: Byte;
begin
  for I := 1 to Prozessoranzahl do
    TMyThread.create(False);
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:54 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz