Autor Beitrag
Trunks
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 62

winXP, win98, winME, debian, suse, maCoS, Symbian, WinCE
Delphi 7, Delhi 2006, c++, MySql, db2, php, js, java, c#, assembler,
BeitragVerfasst: Mo 05.12.05 21:52 
Hallo zusammen,

ich hab da mal ne Frage die mir im kopf rumgeflogen ist.

Wenn ich 2 oder mehrer Timer gleichzeitig auf enabled stelle - Arbeiten die dann Parallel?
Sprich. Wenn ich in timer1 ein befehl zum downloaden einer datei reinstelle und in timer2 ein befehl mit dem löschen einer Datei -> Was passiert als erstes? Oder geschiet das tatsächlich parallel?

Ich danke schonmal im voraus.

Gruss,
MArc
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Mo 05.12.05 21:55 
Wird wohl in die "Todo" Liste von Windows eingetragen, diese wird dann Stück für Stück abgearbeitet, wirklich parallel ist es also nicht, da das so schnell geht kommt es einem allerdings wie parallel vor :wink:
Trunks Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 62

winXP, win98, winME, debian, suse, maCoS, Symbian, WinCE
Delphi 7, Delhi 2006, c++, MySql, db2, php, js, java, c#, assembler,
BeitragVerfasst: Mo 05.12.05 21:59 
Danke für die Antwort.
Aber woher weißt du das. Kann ich das auch nachlesen oder hast du es mit einem Code getestet?

Gruss,
MArc
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Mo 05.12.05 22:02 
Zum Hintergrund vllcht noch etwas näher:
Wenn du einen Timer aktivierst, sag dein Programm Windows, es soll im Abstand [Intervall] eine Windows Message WM_TIMER an das Programm schicken. Und jedes mal, wenn so eine Nachricht ankommt (natürlich nur auf den entsprechenden Timer bezogen!) wird das Ereignis OnTimer ausgelöst.
Bei mehreren Timern gibts halt für jeden einzelnen Timer entsprechend viele WM_TIMER.

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
Trunks Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 62

winXP, win98, winME, debian, suse, maCoS, Symbian, WinCE
Delphi 7, Delhi 2006, c++, MySql, db2, php, js, java, c#, assembler,
BeitragVerfasst: Mo 05.12.05 22:29 
Alles klar. Vielen Dank