sched_aps_query_thread_parms

Структура, используемая для определения партиции адаптивного планировщика для потока и установки ему метки критической важности

Прототип:

#include <sys/sched_aps.h>
#include <sys/neutrino.h>
typedef struct {
/* in params */
_Int32t pid;
_Int32t tid;
/* out parms: */
_Int16t id;
_Int16t inherited_id;
_Uint32t crit_state_flags;
} sched_aps_query_thread_parms;

Описание:

Структура используется в функции SchedCtl() в сочетании с командой SCHED_APS_QUERY_THREAD для одновременного изменения у потка метки критической важности и партиции адаптивного планировщика.

Структура включает следующие поля:

pid
The ID of process that the thread belongs to, or 0 to indicate the calling process.
tid
The thread ID, or 0 for the calling thread.
id
The ID number of the partition that the thread originally joined.
inherited_id
The ID number of the partition that the thread currently belongs to. This might not be the same as the id member, because the thread might have inherited the partition from a calling process.
crit_state_flags
A combination of the following flags:
APS_QCRIT_PERM_CRITICAL
the thread always runs as critical.
APS_QCRIT_RUNNING_CRITICAL
the thread is currently running as critical.
APS_QCRIT_BILL_AS_CRITICAL
the thread's execution time is being billed to the partition's critical budget. If APS_QCRIT_PERM_CRITICAL isn't set, and APS_QCRIT_RUNNING_CRITICAL is set, it means the thread has temporarily inherited the critical state. If APS_QCRIT_RUNNING_CRITICAL is set, and APS_QCRIT_BILL_AS_CRITICAL isn't set, it means that the thread is running as critical, but isn't depleting its partition's critical-time budget (i.e. it's running for free).

Классификация:

ЗОСРВ «Нейтрино»

Тематические ссылки:

SchedCtl()




Предыдущий раздел: Описание API системной библиотеки