[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I dont get.... I just dont get it.



Hi all

I wrote a message about nanosleep in a rt - kernel  module. I got
desparet.......That's it.

so I tried to change nanosleep with sem_timedwait. I did init the
semapore to zero, and
tried to run.

    AND IT WORKED!!!!!!!!!!!!!!!!!!!!!!!

no divide error. no nothing...
but way.......

I am writing a repport so I have to have an argument for using
sem_timedwait insted of nanosleep, but I cant see any big difference
between the to funktion.
The most logic choise whould bee nanosleep...but yeaa you now....