ThreadGroup.ActiveGroupCount 方法

定义

返回此线程组中的活动组数及其子组的估计值。

[Android.Runtime.Register("activeGroupCount", "()I", "GetActiveGroupCountHandler")]
public virtual int ActiveGroupCount();
[<Android.Runtime.Register("activeGroupCount", "()I", "GetActiveGroupCountHandler")>]
abstract member ActiveGroupCount : unit -> int
override this.ActiveGroupCount : unit -> int

返回

此线程组作为上级的活动线程组数

属性

注解

返回此线程组中的活动组数及其子组的估计值。 以递归方式循环访问此线程组中的所有子组。

返回的值只是估计值,因为当此方法遍历内部数据结构时,线程组数可能会动态更改。 此方法主要用于调试和监视目的。

在 1.0 中添加。

适用于 . 的 java.lang.ThreadGroup.activeGroupCount()Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于