pthreads

howcome that pthtreads spawn 2 extra processes?

I'm kind of new with pthreads but fork() did not act like this.

Anyone who can give me a technical explanation of what happends with mother / daughter processes?

Best regards Esaia.

In the UNIX environment a thread:
Exists within a process and uses the process resources.Its has its own independent flow of control as long as its parent process exists and the OS supports it .It May share the process resources with other threads that act equally independently (and dependently).It Dies if the parent process dies.

A thread can possess an independent flow of control and be schedulable because it maintains its own:
Stack pointer
Registers
Scheduling properties (such as policy or priority)
Set of pending and blocked signals
Thread specific data.

See this thread. This stuff did not become clear to me until I understood the difference between light weight processes and threads.