It is time to introduce concurrency. The current thread resumes immediately with the next statement. Each nonterminating thread, that is not blocking, will eventually be allocated a time slice of the processor. This means that threads are executed fairly. In Oz, a high priority thread cannot starve a low priority one.
Priority determines only how large piece of the processor cake a thread can get.
Each thread has a unique name. To get the name of the current thread the procedure Thread . Having a reference to a thread, by using its name, enables operations on threads such as terminating a thread, or raising an exception in a thread. Thread operations are defined the base module Thread . Let us see what we can do with threads.