🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Tweaking threads

#17515
From: Michael Kelly
Date: Wed, 12 Mar 2003 21:32
23 lines
1784 bytes
On Wed, 12 Mar 2003 11:39:18 -0800, "Dennis Jones" <djones@nospam.com> wrote:

>I seem to recall
>reading something once which talked about the optimum number of simultaneous
>threads per processor being somewhere around 3 or 4.  Less than that, and
>you are wasting processor time (assuming the threads go to sleep once in a
>while); more than that, and your process actually begins to slow down (if
>all of the threads are active at the same time) because of context
>switching.

I would tend to think this is old time info maybe valid
on 286 machines or some other CPU with really
clunky context switching(as in simulating rebooting
the machine!)  4 threads/cpu?  Man! You couldn't 
even bring up the Windows desktop!

I think a Pentium can handle a few more than
that. :)


-- 

"Only choice is an oxymoron."
Technical Details
Message-ID: <hq9v6vkjgup69jju5tdj5ltp9s72su9vlq@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!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> <3e6e2fb9@newsgroups.borland.com> <3e6f8ce5$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,47731b28ebfc1a3
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-12 21:35:44 PST
From: Michael Kelly <mkelly00@netzero.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Tweaking threads
Date: Wed, 12 Mar 2003 16:32:05 -0500
Message-ID: <hq9v6vkjgup69jju5tdj5ltp9s72su9vlq@4ax.com>
References: <3e6deb3f@newsgroups.borland.com> <3e6e2fb9@newsgroups.borland.com> <3e6f8ce5$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.92/32.572
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.51.216.36
X-Trace: newsgroups.borland.com 1047504753 24.51.216.36 (12 Mar 2003 13:32:33 -0800)
Lines: 23
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail