STOR_THREAD_PRIORITY枚举 (storport.h)
STOR_THREAD_PRIORITY 指定 StorPort 微型端口创建的线程的优先级。
语法
typedef enum _STOR_THREAD_PRIORITY {
StorThreadPriorityBackground,
StorThreadPriorityNormal,
StorThreadPriorityDelayed,
StorThreadPriorityCritical,
StorThreadPrioritySuperCritical,
StorThreadPriorityHyperCritical,
StorThreadPriorityRealTime
} STOR_THREAD_PRIORITY, *PSTOR_THREAD_PRIORITY;
常数
StorThreadPriorityBackground 系统优先级。 分配的优先级为 7。 |
StorThreadPriorityNormal 系统优先级。 分配的优先级为 8。 |
StorThreadPriorityDelayed 指示普通工作线程。 分配的优先级为 12。 |
StorThreadPriorityCritical 指示实时系统工作线程。 分配的优先级为 13。 |
StorThreadPrioritySuperCritical 系统优先级。 分配的优先级为 14。 |
StorThreadPriorityHyperCritical 系统优先级。 分配的优先级为 15。 |
StorThreadPriorityRealTime 系统优先级。 分配的优先级为 18。 |
言论
微型端口在调用 StorPortCreateSystemThread 来创建线程时设置线程优先级,并且可以更改 StorPortSetPriorityThread中的线程优先级。
每个线程都有计划优先级(其线程优先级)。 较高的值表示更高的优先级线程。
有关常规信息,请参阅 线程优先级。
要求
要求 | 价值 |
---|---|
支持的最低服务器 | Windows Server 2022 |
标头 | storport.h |