Article View: borland.public.cppbuilder.nativeapi
Article #17523Re: Tweaking threads
From: Dennis Jones
Date: Thu, 13 Mar 2003 17:56
Date: Thu, 13 Mar 2003 17:56
19 lines
1802 bytes
1802 bytes
"Ted Tripp" <ttripp@skypoint.com> wrote in message news:3e70406f@newsgroups.borland.com... > 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. This is not true. A thread is not initialized with a particular amount of memory. Any thread can allocate as much memory from the global heap as it needs to (assuming there is memory available). The Windows API also provides something called "thread local storage" (TLS) which is memory that can be allocated by a thread and is known only to the thread that allocated it. But here again, there is no pre-set amount that is made available to the thread. - Dennis
Technical Details
Message-ID:
<3e70c65f$1@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-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<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 10:08:53 PST From: "Dennis Jones" <djones@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e6deb3f@newsgroups.borland.com> <3e6e2fb9@newsgroups.borland.com> <3e70406f@newsgroups.borland.com> Subject: Re: Tweaking threads Date: Thu, 13 Mar 2003 09:56:47 -0800 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 204.200.27.7 Message-ID: <3e70c65f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1047578207 204.200.27.7 (13 Mar 2003 09:56:47 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail