I would like to create a C/C++ program that is informed in "real-time" (i.e. as fast as possible) when a thread is created in the system (not in the current process):
- new thread in an existing process
- new process
I would like a solution working on Linux. Even better if it is portable on any UNIX.
- Is there a POSIX API that I can use?
- Is it possible to get this information from "anywhere" in
/sys/kernel? - Any other solution?