< prev index next >

src/java.management/share/classes/java/lang/management/ThreadMXBean.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 47,66 **** * </blockquote> * * It can be obtained by calling the * {@link PlatformManagedObject#getObjectName} method. * ! * <h2>Thread ID</h2> * Thread ID is a positive long value returned by calling the * {@link java.lang.Thread#getId} method for a thread. * The thread ID is unique during its lifetime. When a thread * is terminated, this thread ID may be reused. * * <p> Some methods in this interface take a thread ID or an array * of thread IDs as the input parameter and return per-thread information. * ! * <h2>Thread CPU time</h2> * A Java virtual machine implementation may support measuring * the CPU time for the current thread, for any thread, or for no threads. * * <p> * The {@link #isThreadCpuTimeSupported} method can be used to determine --- 47,66 ---- * </blockquote> * * It can be obtained by calling the * {@link PlatformManagedObject#getObjectName} method. * ! * <h3>Thread ID</h3> * Thread ID is a positive long value returned by calling the * {@link java.lang.Thread#getId} method for a thread. * The thread ID is unique during its lifetime. When a thread * is terminated, this thread ID may be reused. * * <p> Some methods in this interface take a thread ID or an array * of thread IDs as the input parameter and return per-thread information. * ! * <h3>Thread CPU time</h3> * A Java virtual machine implementation may support measuring * the CPU time for the current thread, for any thread, or for no threads. * * <p> * The {@link #isThreadCpuTimeSupported} method can be used to determine
*** 81,91 **** * methods can be used to test if CPU time measurement is enabled * and to enable/disable this support respectively. * Enabling thread CPU measurement could be expensive in some * Java virtual machine implementations. * ! * <h2>Thread Contention Monitoring</h2> * Some Java virtual machines may support thread contention monitoring. * When thread contention monitoring is enabled, the accumulated elapsed * time that the thread has blocked for synchronization or waited for * notification will be collected and returned in the * <a href="ThreadInfo.html#SyncStats">{@code ThreadInfo}</a> object. --- 81,91 ---- * methods can be used to test if CPU time measurement is enabled * and to enable/disable this support respectively. * Enabling thread CPU measurement could be expensive in some * Java virtual machine implementations. * ! * <h3>Thread Contention Monitoring</h3> * Some Java virtual machines may support thread contention monitoring. * When thread contention monitoring is enabled, the accumulated elapsed * time that the thread has blocked for synchronization or waited for * notification will be collected and returned in the * <a href="ThreadInfo.html#SyncStats">{@code ThreadInfo}</a> object.
*** 94,104 **** * determine if a Java virtual machine supports thread contention monitoring. * The thread contention monitoring is disabled by default. The * {@link #setThreadContentionMonitoringEnabled} method can be used to enable * thread contention monitoring. * ! * <h2>Synchronization Information and Deadlock Detection</h2> * Some Java virtual machines may support monitoring of * {@linkplain #isObjectMonitorUsageSupported object monitor usage} and * {@linkplain #isSynchronizerUsageSupported ownable synchronizer usage}. * The {@link #getThreadInfo(long[], boolean, boolean)} and * {@link #dumpAllThreads} methods can be used to obtain the thread stack trace --- 94,104 ---- * determine if a Java virtual machine supports thread contention monitoring. * The thread contention monitoring is disabled by default. The * {@link #setThreadContentionMonitoringEnabled} method can be used to enable * thread contention monitoring. * ! * <h3>Synchronization Information and Deadlock Detection</h3> * Some Java virtual machines may support monitoring of * {@linkplain #isObjectMonitorUsageSupported object monitor usage} and * {@linkplain #isSynchronizerUsageSupported ownable synchronizer usage}. * The {@link #getThreadInfo(long[], boolean, boolean)} and * {@link #dumpAllThreads} methods can be used to obtain the thread stack trace
< prev index next >