[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Aperiodic and periodic task
- Date: Fri, 6 Aug 1999 10:51:18 -0500 (CDT)
- From: joel at OARcorp.com (joel at OARcorp.com)
- Subject: Aperiodic and periodic task
On Fri, 6 Aug 1999 king at syscon.soongsil.ac.kr wrote:
> Hello.
> I wanna know scheduling concept of RTEMS running aperiodic and periodic task(rate monotonic).
Periodic tasks are constructed using the Rate Monotonic Manager like this
example from the User's manual:
rtems_task Periodic_task()
{
rtems_name name;
rtems_id period;
rtems_status_code status;
name = rtems_build_name( 'P', 'E', 'R', 'D' );
(void) rate_monotonic_create( name, &period );
while ( 1 ) {
if ( rate_monotonic_period( period, 100 ) == TIMEOUT )
break;
/* Perform some periodic actions */
}
/* missed period so delete period and SELF */
(void) rate_monotonic_delete( period );
(void) task_delete( SELF );
}
--joel
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985