Threads

The following video explains the idea behind the behavior of threads: