What does setting thread.daemon = True do before starting a thread?
-
A
Raises the thread's execution priority to the highest level
-
B
Makes the thread run in the background and automatically exit when the main program ends
-
C
Allocates additional memory to the thread for large workloads
-
D
Prevents the thread from being interrupted by signals