🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Thread "limit" to an application?

#3206
From: Remy Lebeau (TeamB)
Date: Fri, 28 Jul 2006 19:30
26 lines
1840 bytes
"Goran Ekstrom" <goek!removeantispam!@telia.com> wrote in message
news:44ca6298$1@newsgroups.borland.com...

> is there any limit, technical, philosophical, ..., to how many threads an
> application "should/could" be running?

Yes.

> Right now I am having quite extensive RS-232 communication in my
> app, 3 active ports and counting

That is not very extensive at all.

> each port handler is running on its own thread together with the VCL
> and a "handler" thread.

In other words, you only have 5 threads running?  That is next to nothing.
A process can have several *hundred* threads running simultaneously before
you start to have reosurce/memory problems.  If you tweak the stack settings
for new threads, and the threads don't allocate very much memory/resources,
you could potentially even run upwards of 1000+ threads, depending on which
OS you are using.


Gambit
Technical Details
Message-ID: <44ca6644$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44ca6298$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c51abf2487a62fca
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44ca6298$1@newsgroups.borland.com>
Subject: Re: Thread "limit" to an application?
Date: Fri, 28 Jul 2006 12:30:47 -0700
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <44ca6644$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1154115140 68.69.17.41 (28 Jul 2006 12:32:20 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail