Autor Beitrag
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Mi 09.07.03 20:29 
Hallo,

der titel sagt ja bereist alles, aber warum? der code ist garnicht so viel der ausgeführt wird. eine endlos while schleife die nur unterbrochen wird wenn der TThread beendet wird.

_________________
MFG
Michael Springwald, "kann kein englisch...."
AndyB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1173
Erhaltene Danke: 14


RAD Studio XE2
BeitragVerfasst: Mi 09.07.03 20:50 
Während der Thread nichts zu tun hat, solltest du Sleep aufrufen.

_________________
Ist Zeit wirklich Geld?
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Mi 09.07.03 21:36 
muss ich das dann in der excute procedure machen, oder wo genau ?

_________________
MFG
Michael Springwald, "kann kein englisch...."
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Mi 09.07.03 22:00 
Wenn du nichts zeitkritisches in deinem Thread machst, kannst du auch in der Schleife sleep(1) aufrufen.
Das hat bei mir vorgestern 'ne ganze Menge gebracht: von 100% Auslastung auf "nicht mehr feststellbar" (Wert ging in der Last der anderen Threads unter).
Ansonsten kann man weiterhelfen, wenn man weiß, was der Thread machen soll.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Mi 09.07.03 22:14 
der trehd soll nur schauen ob in fmod noch gespielt wird oder nicht, ich denke das mit dem sleep werde ich mal morgen testen. das hatte ich heute auch schonmal:
mit Showmessage ging es, ohne ging es nicht und ein sleep(100) hat das gleiche ergbnis gebracht wie mit Showmessage.

_________________
MFG
Michael Springwald, "kann kein englisch...."