469,603 Members | 2,110 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,603 developers. It's quick & easy.

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

Jul 22 '05 #1
3 1608
ha************@gmail.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.

Gianguglielmo

Jul 22 '05 #2
ha************@gmail.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 ?


http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
Jonathan
Jul 22 '05 #3
On 19 Dec 2004 14:33:49 -0800, "GianGuz" <gi*****************@noze.it>
wrote in comp.lang.c++:
ha************@gmail.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/~a...FAQ-acllc.html
Jul 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Robert | last post: by
8 posts views Thread by PD | last post: by
1 post views Thread by sleepyant | last post: by
1 post views Thread by alexey_m | last post: by
5 posts views Thread by A_StClaire_ | last post: by
11 posts views Thread by Jon Slaughter | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.