首 页 | 新 闻 | Symbian | Windows Mobile| J2ME | 下载中心 | 游戏策划 | 购书指南 | 移动开发视频教程
您现在的位置: 开发视界 >> 专家专栏 >> Symbian翻译小组 >> Symbian OS SDK V8.1a >> Symbian OS guide >> Base >> Using User Library >> Memory Management >> concepts >> 文章正文
线程的绝对优先级别
作者:LeeFJ    文章来源:PhonerCN    更新时间:2006-5-9 0:24:16
译者: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

相关文章:
线程与进程的优先级
线程的终止
线程赋值的相对优先级
进程与线程简介
线程和进程 ID
异常处理
Heaps