how to find all threads of a given process?

From: jesse
Date: Thu Jan 06 2005 - 21:12:18 EST


suppose I already know the PID of a process, how could
i quickly identify all threads of this process?

As i know, under /proc, threads of all processes have
prefix ".", one way is to iterate each one and do the
check. the approach is too expensive. any other
suggestions?

for instance,


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/