JDK 20 |
---|
20Resolved |
The ability to suspend or resume a Thread with the `Thread.suspend()` and `Thread.resume()` methods has been removed in this release. The methods have been changed to throw `UnsupportedOperationException`. These methods were inherently deadlock prone and have been deprecated since JDK 1.2 (1998). The corresponding methods in `ThreadGroup`, to suspend or resume a group of threads, were changed to throw `UnsupportedOperationException` in Java 19.