A thread can be flagged as a 'daemon thread'. The significance of this flag is that the entire Python program exits when only daemon threads are left.