How to get tid of kernel threads?
Hi, when I make a new program it gets a certain process id(PID), I can get this using getpid().
Then I create a thread which have a thread ID, inside the process, a TID., I can get this also, pthread_self() and also the TID is returned when a thread is created.
BUT, when the scheduler is scheduling it schedules threads, kernel threads. How do I get this TID? that is the kernel thread ID of the threads I create in my process? How to get it?
I'm working in Solaris and Linux.