译者:LeeFJ SYMBIAN OS SDK V8.1A
--------------------------------------------------------------------------------
» Symbian OS SDK v8.1a » Symbian OS guide » Base » Using User Library (E32) » Thread And Process Management » Using Threads and Processes » Assigning an absolute priority value to a thread
--------------------------------------------------------------------------------
Assigning an absolute priority value to a thread 线程的绝对优先级别
A thread can be assigned one of the five absolute priority values: 线程可以被赋值以下五个线程优先级:
EPriorityAbsoluteVeryLow
EPriorityAbsoluteLow
EPriorityAbsoluteBackground
EPriorityAbsoluteForeground
EPriorityAbsoluteHigh
which are enumerators of the TThreadPriority enumeration, defined in e32std.h. These absolute priority values are assigned through RThread::SetPriority(). 他们是TThreadPriority 型的枚举变量,在e32std.h中定义。线程的绝对悠闲级可以通过RThread::SetPriority()方法进行赋值。
The resulting absolute priority of a thread is the same as the value assigned here. The priority of the process which owns the thread is ignored. In effect, these specific five values allow a thread's absolute priority to be set independently of the process's priority. 线程的最终绝对优先级等于它所赋的绝对优先级。线程的所有者进程的优先级将被忽略。出于效率的考虑,这五个线程的绝对优先级可以独立于进程设置。

The following diagram shows the resulting absolute priority of a thread when set to one of these five values; it also shows them in relation to the process's priority values. 下图显示了线程被设置以上5个饿绝对优先级值后的最终绝对优先级,它同时也显示了着五个绝对优先级在进程优先级中的相对位置。
-------------------------------------------------------------------------------- Copyright ©2005 Symbian Ltd. unknown-build-id
|