Article View: borland.public.cppbuilder.nativeapi
Article #3207Re: Thread "limit" to an application?
From: Goran Ekstrom
Date: Sat, 29 Jul 2006 15:28
Date: Sat, 29 Jul 2006 15:28
35 lines
2118 bytes
2118 bytes
OK Remy, thanks. "Remy Lebeau (TeamB)" <no.spam@no.spam.com> skrev i meddelandet news:44ca6644$1@newsgroups.borland.com... > > "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:
<44cb7ea1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44ca6298$1@newsgroups.borland.com> <44ca6644$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: "Goran Ekstrom" <goek!removeantispam!@telia.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <44ca6298$1@newsgroups.borland.com> <44ca6644$1@newsgroups.borland.com> Subject: Re: Thread "limit" to an application? Date: Sat, 29 Jul 2006 17:28:35 +0200 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 81.235.178.206 Message-ID: <44cb7ea1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1154186913 81.235.178.206 (29 Jul 2006 08:28:33 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail