共用方式為


ThreadGroup.Suspend Method

Definition

Caution

deprecated

Suspends all threads in this thread group.

[Android.Runtime.Register("suspend", "()V", "")]
[System.Obsolete("deprecated")]
public void Suspend ();
[<Android.Runtime.Register("suspend", "()V", "")>]
[<System.Obsolete("deprecated")>]
member this.Suspend : unit -> unit
Attributes

Remarks

Suspends all threads in this thread group.

First, the checkAccess method of this thread group is called with no arguments; this may result in a security exception.

This method then calls the suspend method on all the threads in this thread group and in all of its subgroups.

Added in 1.0.

This member is deprecated. This method is inherently deadlock-prone. See Thread#suspend for details.

Java documentation for java.lang.ThreadGroup.suspend().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also