Python daemon in Linux

L

LarinAM

i made MyThread(Thread)

when isDaemon() == 0:
everything works

when isDaemon() == 1:
nothing works

why???
 
L

LarinAM

As far as I understand the issue, any Python process has a sort of
"main" thread. When the main thread exits, the Python process will
exit
if there are only daemon threads around. If there are any non-daemon
threads, the Python process will only exit after those threads are
finished.
Or, as the documentation says: "The entire Python program exits when
no
active non-daemon threads are left."

Kind regards,
Benjamin
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top