[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] general question about nanosleep, usleep, semaphores and otherwaits.
> Hi all
> This is a general question.
>
> When using nanosleep, sem_wait, usleep etc. in RT - threds these
> funktion is performed as sleep. it meens the thread is suspended until
> the wakeuptime ore call to sem_post from other thred. thats fine.
>
> But what happens withe these funktions is called from a fifo handler or
> in init_module. I know that nanosleep is busy wait, but what about fx.
nanosleep is not busy wait, it calls clock_nanosleep wich sets up the timer
marks it selfe suspended and then calls rtl_schedul().
hofrat