JNI Linux Getting process id of child threads
I have a java program that spawns multiple child threads. Inside the child threads i make a native function call to get the process id of the current thread(process in linux) but this return the process id of the main program that spawned the child threads, though the top command shows different process id s, is there any way i can get process id of each thread?

