Article View: borland.public.cppbuilder.nativeapi
Article #15358Re: SetEventTimer routine holds TThread task?
From: Remy Lebeau (TeamB)
Date: Mon, 07 Jul 2003 08:08
Date: Mon, 07 Jul 2003 08:08
20 lines
1824 bytes
1824 bytes
"Phuoc Can HUA" <home}a+t{huaonline.com> wrote in message
news:oprrxfa6dpbq7az6@newsgroups.borland.com...
> Do the timer routine and TThread sharing the CPU?
Of course. Everything shares the CPU.
> because it seems to me that the TThread is put on hold
> while the timer routine is being executed.
Again, I have to ask what your thread and timer are actually doing. If youe
timer is doing something that is CPU-intense and not yielding control back
to the rest of the system periodically, then yes, it is conceivable for your
timer to block your worker thread. Which OS are you using for this? Do you
know what the overall CPU usage is during the blockage? If you're using
WinNT/2K/XP, you can view the usage via the Task Manager.
Gambit
Technical Details
Message-ID:
<3f09295c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<oprrwu2pcgbq7az6@newsgroups.borland.com> <3f08d164@newsgroups.borland.com> <oprrxfa6dpbq7az6@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a436a021eb0521f3 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-07 01:09:43 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <oprrwu2pcgbq7az6@newsgroups.borland.com> <3f08d164@newsgroups.borland.com> <oprrxfa6dpbq7az6@newsgroups.borland.com> Subject: Re: SetEventTimer routine holds TThread task? Date: Mon, 7 Jul 2003 01:08:28 -0700 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f09295c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1057565020 207.175.226.26 (7 Jul 2003 01:03:40 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail