Basic Operations Basic thread operations include thread creation and termination . Thread Creation Thread creation differs from process creation in that no parent-child relation exists between threads. All threads, except the initial thread automatically created when a process is created, are on the same hierarchical level. A thread does not maintain a list of created threads, nor does it know the thread that created it. When creating a thread, an entry-point routine and an argument must be specified.
Every thread has an entry-point routine with one argument.
The same entry-point routine may be used by several threads. See Creating Threads for more information about thread creation. Thread Termination Threads can terminate themselves by either returning from their entry-point routine or calling a library subroutine. Threads can also terminate other threads, using a mechanism called cancellation . Any thread can request the cancellation of another thread.