79277456

Date: 2024-12-13 07:11:06
Score: 1.5
Natty:
Report link

if you would like program to exit before child finish processing you must set:

curr_thread.daemon = True

Daemon threads in Python operate in the background, running concurrently with the main program. Their distinctive feature lies in their non-blocking nature, allowing the main program to proceed without waiting for their completion.

It means that main thread will not wait for daemon thread.

In this case main thread will sacrifice its child.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Miłosz Kaszyński