13 Feb
2002
13 Feb
'02
5:29 a.m.
Dieter Maurer wrote: ...
Please retry this with threads!
While Linux uses processes to implement threads, these processes are more tightly coupled than those created by "fork".
A fork'ed process has its own address space and its own independent resources (such as locks). Threads, on the other hand, share the same address space and the same resources.
Locks will synchronize threads but not (independent) processes.
Yes, you are right. I couldn't even suppose that threads of the same process have different pids. Thank you for the explanation. -- Alexei