Ignore:
Timestamp:
May 24, 1996, 2:16:24 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
abd604a
Parents:
8442b4c7
Message:

added use of sporadic server scheduling parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psxhdrs/sched03.c

    r8442b4c7 r6481405e  
    3232  policy = SCHED_FIFO;
    3333  policy = SCHED_OTHER;
     34#ifdef _POSIX_SPORADIC_SERVER
     35  policy = SCHED_SPORADIC;
     36#endif
     37
     38  /*
     39   *  really should use sched_get_priority_min() and sched_get_priority_max()
     40   */
    3441
    3542  param.sched_priority = 0;
     43#ifdef _POSIX_SPORADIC_SERVER
     44  param.ss_low_priority = 0;
     45  param.ss_replenish_period.tv_sec = 0;
     46  param.ss_replenish_period.tv_nsec = 0;
     47  param.ss_initial_budget.tv_sec = 0;
     48  param.ss_initial_budget.tv_nsec = 0;
     49#endif
    3650
    3751  result = sched_setscheduler( pid, policy, &param );
Note: See TracChangeset for help on using the changeset viewer.