Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
i know how to get current running thread from java

Java
int mn = Thread.getAllStackTraces().keySet().size();

but i want to do it from scratch for java
and also i want to do it in c++ pthread
Posted
Updated 5-Jan-16 2:43am
v2

1 solution

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-Jan-16 14:21pm    
That really answers this question, a 5.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900