Comments on: How to Stop a Daemon Thread Gracefully in Python https://superfastpython.com/stop-daemon-thread/ making you awesome at concurrency Tue, 19 Dec 2023 23:45:57 +0000 hourly 1 https://wordpress.org/?v=6.9.4 By: Jason Brownlee https://superfastpython.com/stop-daemon-thread/#comment-10191 Tue, 19 Dec 2023 23:45:57 +0000 https://superfastpython.com/?p=1021#comment-10191 You may want to join a daemon if you expicltly shut it down, e.g. while closing a server or service.

]]>
By: Ibrahim Khajanchi https://superfastpython.com/stop-daemon-thread/#comment-10188 Tue, 19 Dec 2023 21:14:31 +0000 https://superfastpython.com/?p=1021#comment-10188 Thanks for the article?

What is the point of doing a .join() on a daemon process? If you’re waiting for that thread to finish before you handoff control to the main thread, then you could’ve just made that thread non-daemon right?

Which would suggest you would only want to spin up daemon thread for tasks that you don’t need to be atomic.

]]>