 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
haggai.shachar@gmail.com Guest
|
Posted: Sun Dec 19, 2004 9:23 pm Post subject: Never terminated thread - Symbian Seriese 60 |
|
|
Hello,
C++ over Symbian OS Seriese 60 (or any other OS) -
Is there a way to create a thread that is never terminated?
Suppose I want to create a Bluetooth listener / service that doesn't
terminate as the application is closed.
Does it depend on the handset ?
if so which handsets support that ?
Thnaks,
Haggai
|
|
| Back to top |
|
 |
GianGuz Guest
|
Posted: Sun Dec 19, 2004 10:33 pm Post subject: Re: Never terminated thread - Symbian Seriese 60 |
|
|
[email]haggai.shachar (AT) gmail (DOT) com[/email] wrote:
| Quote: | Hello,
C++ over Symbian OS Seriese 60 (or any other OS) -
Is there a way to create a thread that is never terminated?
Suppose I want to create a Bluetooth listener / service that doesn't
terminate as the application is closed.
Does it depend on the handset ?
if so which handsets support that ?
Thnaks,
Haggai
|
Thread's lifetime is linked to its process.
If, at the application exit, you exit from any process
attached to your application the OS will also kill every thread.
If you need a service that is alive independently by your
main application you probably have to create a
daemon process (with its own threads if you need them)
that runs in background.
Gianguglielmo
|
|
| Back to top |
|
 |
Jonathan Mcdougall Guest
|
Posted: Sun Dec 19, 2004 10:46 pm Post subject: Re: Never terminated thread - Symbian Seriese 60 |
|
|
[email]haggai.shachar (AT) gmail (DOT) com[/email] wrote:
| Quote: | Hello,
C++ over Symbian OS Seriese 60 (or any other OS) -
Is there a way to create a thread that is never terminated?
Suppose I want to create a Bluetooth listener / service that doesn't
terminate as the application is closed.
Does it depend on the handset ?
if so which handsets support that ?
|
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9
Jonathan
|
|
| Back to top |
|
 |
Jack Klein Guest
|
Posted: Mon Dec 20, 2004 4:09 am Post subject: Re: Never terminated thread - Symbian Seriese 60 |
|
|
On 19 Dec 2004 14:33:49 -0800, "GianGuz" <gianguglielmo.calvi (AT) noze (DOT) it>
wrote in comp.lang.c++:
| Quote: | haggai.shachar (AT) gmail (DOT) com wrote:
Hello,
C++ over Symbian OS Seriese 60 (or any other OS) -
Is there a way to create a thread that is never terminated?
Suppose I want to create a Bluetooth listener / service that doesn't
terminate as the application is closed.
Does it depend on the handset ?
if so which handsets support that ?
Thnaks,
Haggai
Thread's lifetime is linked to its process.
If, at the application exit, you exit from any process
attached to your application the OS will also kill every thread.
If you need a service that is alive independently by your
main application you probably have to create a
daemon process (with its own threads if you need them)
that runs in background.
|
Please cite a reference to any part of the ISO C++ standard that
defines even one of these terms: 'process', 'thread', 'service',
'daemon', 'background'.
If you can't, and I know you can't, kindly stop posting off-topic
answers to off-topic questions in comp.lang.c++.
--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|