java - Java中线程的空闲时间是什么意思?

标签 java multithreading

Java 中线程的空闲时间是什么意思? 我正在阅读Java The Complete Reference 8th edition's和 它说的是这样的:

...One thread can pause without stopping other parts of your program. For example, the idle time created when a thread reads data from a network or waits for user input can be utilized elsewhere...

最佳答案

在这种情况下,这意味着线程的状态是 WAITINGTIMED_WAITING ,这意味着

A thread in the waiting state is waiting for another thread to perform a particular action.

关于java - Java中线程的空闲时间是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56810390/

相关文章:

pthread中两个线程之间的通信

python - cython.并行 : variable assignment without thread-locality

java - OpenExchangeRates.org 的任何 java 示例

multithreading - F# 每秒生成一个新的异步请求

java - 想要访问 firebase cloud firestore 但存在运行时错误

java - 重建 Android Studio 项目时出现错误

java - 同步块(synchronized block)抛出 DuplicateKeyException

java - 如何监听 Firebase setValue 完成

java - @Override 注解的问题

java - Spring 启动: InvalidTypeIdException When Trying to Parse Json