尽管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.
这次处理的当前基本优先权。在一个处理中的线程可以根据处理的基本优先权提高或降低自己的基本优先权。
The current base priority of this process. Threads within a process can raise and lower their own base priority relative to the process 'base priority.
这次处理的当前基本优先权。在一个处理中的线程可以根据处理的基本优先权提高或降低自己的基本优先权。
The current base priority of this process. Threads within a process can raise and lower their own base priority relative to the process 'base priority.
应用推荐