## Replace the ... text below with a title and a summary of the problem. ## Feel free to remove any remaining comments once you're done! = Asking for Help: thread started by 'bg' ends without any notification = ... ## Insert your problem description here. You may provide code samples using syntax like this: ## {{{#!python ## I already have a tool programmed using python language and I am trying to add a functionality over it. For that purpose I have written certain functions and utilities and I start these functions in separate threads using 'bg '. Now some of the threads are dying without any notification or exception. Here is the output showing threads just after all the threads are started - {{{ sae_sim In[8]: threading.enumerate -------------> threading.enumerate() sae_sim Out[8]: [<_MainThread(MainThread, started)>, , , , , >>>>>>>>>>>>>>>>>>>>>> , >>>>>>>>>>>>>>>>>>>>>> , , >>>>>>>>>>>>>>>>>>>>>> , , <_Timer(Thread-1, started)>, , , , >>>>>>>>>>>>>>>>>>>>>> <_Timer(Thread-41, started)>] }}} Somewhere during the execution '{{{}}}' thread gets killed and there is no trace on how and why it has ended. Here is the output of threading.enumerate() captured when I understood from the execution stats the some of the threads might have gotten killed - {{{ --------------> threading.enumerate() sae_sim Out[14]: [<_Timer(Thread-107597, started daemon)>, , , , >>>>>>>>>>>> , >>>>>>>>>>>>>> , , <_Timer(Thread-107607, started daemon)>, <_Timer(Thread-107602, started daemon)>, , <_Timer(Thread-107587, started daemon)>, , >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> , <_Timer(Thread-120447, started)>, <_MainThread(MainThread, started)>, , ] }}} ## Leave the note below so that editors can follow the instructions... {{{#!wiki note When ''answering'' questions, add the CategoryAskingForHelpAnswered category when saving the page. This will move the link to this page from the questions section to the answers section on the [[Asking for Help]] page. }}} ---- CategoryAskingForHelp