ratemonotonic & semaphore use
이형철
baram at mirae.kangwon.ac.kr
Wed Nov 15 16:11:31 UTC 2000
hello
I use semaphore and rate monotonic function.
I make application program.
task 1:
while(1)
{
if(rate_monotonic_period(period, rmid) == RTEMS_TIMEOUT)
{
break;
}
rtems_semaphore_obtain(semaphore1);
do critical section
rtems_semaphore_release(semaphore1);
do anything
}
task2:
while(1)
{
if(rate_monotonic_period(period, rmid) == RTEMS_TIMEOUT)
{
break;
}
rtems_semaphore_obtain(semaphore1);
do critical section
rtems_semaphore_release(semaphore1);
do anything
}
Is this correct..?
thanks..
H.C.LEE baram at mirae.kangwon.ac.kr
More information about the users
mailing list