Download RTEMS POSIX API User's Guide

Transcript
ix
13
Scheduler Manager . . . . . . . . . . . . . . . . . . . . . 229
13.1
13.2
13.3
13.4
14
Clock Manager . . . . . . . . . . . . . . . . . . . . . . . . . 235
14.1
14.2
14.3
14.4
15
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Background. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
13.2.1 Priority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
13.2.2 Scheduling Policies . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
13.4.1 sched get priority min - Get Minimum Priority
Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
13.4.2 sched get priority max - Get Maximum Priority
Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
13.4.3 sched rr get interval - Get Timeslicing Quantum
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
13.4.4 sched yield - Yield the Processor . . . . . . . . . . . . . . 234
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Background. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14.4.1 clock gettime -Obtain Time of Day . . . . . . . . . . .
14.4.2 clock settime - Set Time of Day . . . . . . . . . . . . . .
14.4.3 clock getres - Get Clock Resolution . . . . . . . . . . .
14.4.4 sleep - Delay Process Execution. . . . . . . . . . . . . . .
14.4.5 nanosleep - Delay with High Resolution . . . . . . .
14.4.6 gettimeofday - Get the Time of Day. . . . . . . . . . .
14.4.7 time - Get time in seconds . . . . . . . . . . . . . . . . . . .
235
235
235
235
235
237
238
239
240
241
242
Timer Manager. . . . . . . . . . . . . . . . . . . . . . . . . 243
15.1
15.2
15.3
15.4
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Background. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
System Calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15.4.1 timer create - Create a Per-Process Timer . . . . .
15.4.2 timer delete - Delete a Per-Process Timer . . . . .
15.4.3 timer settime - Set Next Timer Expiration . . . .
15.4.4 timer gettime - Get Time Remaining on Timer
...............................................
15.4.5 timer getoverrun - Get Timer Overrun Count . .
243
243
243
243
244
245
246
247
248