🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages Started by Sunny Tsai Mon, 02 Jul 2001 08:17
multi-thread problem
#537
Author: Sunny Tsai
Date: Mon, 02 Jul 2001 08:17
12 lines
1271 bytes
Hi there!

I write a multi-thread program under win2k and bcb5, everything runs well,
but I found that the CPU (PIII 933) consumed 100% every second while I ran
my application, who can tell me how to write a low cpu consumption
application with multi-thread features.

I used the bcb5's new...(in "File" mennu) wizard and generate a new Thread
object to finish a multi-thread app. I set the thread priority to tpLow, but
had no effect.

Thanks to get help here!
Re: multi-thread problem
#543
Author: Indra Gunawan
Date: Fri, 06 Jul 2001 02:45
21 lines
1693 bytes
perhaps you are using "hard" loop within synchronize block. usually it makes
windows hard to divide its processes thus makes your process the only
working process while blocking the others.

"Sunny Tsai" <hg.caisheng@szgas.com.cn> wrote in message
news:3b402e9c$1_2@dnews...
> Hi there!
>
> I write a multi-thread program under win2k and bcb5, everything runs well,
> but I found that the CPU (PIII 933) consumed 100% every second while I ran
> my application, who can tell me how to write a low cpu consumption
> application with multi-thread features.
>
> I used the bcb5's new...(in "File" mennu) wizard and generate a new Thread
> object to finish a multi-thread app. I set the thread priority to tpLow,
but
> had no effect.
>
> Thanks to get help here!
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads