Структура, используемая для установки общих параметров адаптивного планирования
#include <sys/sched_aps.h>
#include <sys/neutrino.h>
typedef struct {
_Int16t windowsize_ms;
_Uint32t *scheduling_policy_flagsp;
_Uint32t *bankruptcy_policyp;
} sched_aps_parms;
Структура описывает общие параметры квотирования ресурсов и адаптивного планирования и включает следующие поля:
- windowsize_ms
- The time over which the scheduler is to average CPU cycles and balance the partitions to their percentage budgets as specified by SCHED_APS_CREATE_PARTITION If you don't want to set the window size, set this member to
-1
. - scheduling_policy_flagsp
- A pointer to an ORed set of SCHED_APS_SCHEDPOL_* flags that specify the scheduling policy. If you don't want to change the scheduling policy, set this member to
NULL
. - bankruptcy_policyp
- A pointer to an ORing of SCHED_APS_BNKR_* flags. If you don't want to change these flags, set this member to
NULL
.
ЗОСРВ «Нейтрино»
структура sched_aps_info, SchedCtl()
Предыдущий раздел: Описание API системной библиотеки