Never terminated thread - Symbian Seriese 60

H

haggai.shachar

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
 
G

GianGuz

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
 
J

Jack Klein

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++.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,244
Members
46,838
Latest member
KandiceChi

Latest Threads

Top