🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17481

Re: Tweaking threads

#17481
From: Remy Lebeau (TeamB)
Date: Tue, 11 Mar 2003 18:57
18 lines
1430 bytes
"Ted Tripp" <ttripp@skypoint.com> wrote in message
news:3e6deb3f@newsgroups.borland.com...
> The BCB5 manual recommends no more than 16 threads
> per processor.

Ignore it.  It's rubbish.  I've seen programs running hundreds of threads at
a time without any problems.

> my app usually runs the CPU at about 100%, is there a
> way to control that?

That is typically caused by your code running tight loops that don't yield
control to other threads/processes.  Try introducing Sleep() calls in your
loops.


Gambit
Technical Details
Message-ID: <3e6e2fb9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e6deb3f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,47731b28ebfc1a3,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-12 16:23:30 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e6deb3f@newsgroups.borland.com>
Subject: Re: Tweaking threads
Date: Tue, 11 Mar 2003 10:57:43 -0800
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3e6e2fb9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1047408569 207.175.226.26 (11 Mar 2003 10:49:29 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail