🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Tweaking threads

#17529
From: Michael Kelly
Date: Thu, 13 Mar 2003 18:47
17 lines
1668 bytes
On Thu, 13 Mar 2003 02:27:02 -0600, "Ted Tripp" <ttripp@skypoint.com> wrote:

>Another question, I vaguely recall reading that threads are initialized with
>a certain (default?) amount of memory.  I seem to recall something like
>1MB--maybe this was a nonwindows OS...  Anyway, if true, can this, should
>this, be tweaked?  If not true, NM.

Perhaps you are thinking in Windows the main thread uses
a default heap that is also used by Windows.  So, one possible
optimization is to allocate a heap to a thread so that only that
thread is accessing it.  I seem to remember the 1 MB myself
but I don't know if it's a Windows default or has to do with
the linker used to link the app.

-- 

"Only choice is an oxymoron."
Technical Details
Message-ID: <8ck17vkgivr0talfloh8v5bnknsnd211la@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!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> <3e70406f@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-13 11:16:06 PST
From: Michael Kelly <mkelly00@netzero.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Tweaking threads
Date: Thu, 13 Mar 2003 13:47:11 -0500
Message-ID: <8ck17vkgivr0talfloh8v5bnknsnd211la@4ax.com>
References: <3e6deb3f@newsgroups.borland.com> <3e6e2fb9@newsgroups.borland.com> <3e70406f@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.52.46.78
X-Trace: newsgroups.borland.com 1047581975 24.52.46.78 (13 Mar 2003 10:59:35 -0800)
Lines: 17
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail