Tracing all threads spawned by a process

view story

http://stackoverflow.com – I am struggling to understand the behaviour of ptrace when the treaced process t1 invoke clone() and fork () and spawns another thread t2. According to the documentation t1 is stopped by the kernel via SIGSTOP signal, while the tracer start tracing t2. When t2 process will continue? How it will be waken up? Let's consider the situation in which I have a pool of threads, and I want to monitor them. if more then one thread is executed in the same time, how can I can I trace them? (HowTos)