java 获取当前进程id 线程id

java  获取当前进程id  线程id 

 

 

RuntimeMXBean (Java Platform SE 8 ) https://docs.oracle.com/javase/8/docs/api/java/lang/management/RuntimeMXBean.html

 

posted @ 2018-12-15 12:10  papering  阅读(3005)  评论(0编辑  收藏  举报