尽管JCL定义了线程优先权的概念,然而传统JVM并不需要执行优先权。
Although the JCL defines the concept of thread priority, a traditional JVM is not required to enforce priorities.
和优先权线程的情况不同,一个行为不良的轻便线程会获取无限量的独占处理器时间。
Unlike with preemptive threads, an ill-behaved weightless thread can grab an indefinite amount of exclusive processor attention.
可以基于任务来设定优先权,例如用于屏幕存储器的线程应该低于一般水平。
Can set thread priority based on task semantic, such as below normal for a screen saver.
应用推荐