Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages
Started by Goran Ekstrom
Fri, 28 Jul 2006 19:16
Thread "limit" to an application?
Author: Goran Ekstrom
Date: Fri, 28 Jul 2006 19:16
Date: Fri, 28 Jul 2006 19:16
9 lines
1268 bytes
1268 bytes
Hi, is there any limit, technical, philosophical, ..., to how many threads an application "should/could" be running? Right now I am having quite extensive RS-232 communication in my app, 3 active ports and counting, and each port handler is running on its own thread together with the VCL and a "handler" thread. Good or bad or none of the above? Thanks Goran Ekstrom
Re: Thread "limit" to an application?
Author: Remy Lebeau (TeamB)
Date: Fri, 28 Jul 2006 19:30
Date: Fri, 28 Jul 2006 19:30
26 lines
1840 bytes
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
Re: Thread "limit" to an application?
Author: 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 > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads