这两种方式得到的ID并不是相同的,前者的返回值是int,后者是long。

android.os.Process.myTid():是进程.

 Thread.currentThread().getId()是线程.

 

相关文章:

  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2021-07-14
猜你喜欢
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案