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

Re: [rtl] now I got it (with code)



Ok, nanosleep/usleep in init_module should cause Linux to hang.
The "Linux" RT-thread is suspended, and it means the whole of Linux.
Also, you can not use them in an interrupt handler, since it is
unpredictable which task is suspended this way.

If you use these functions in an RT-thread, they will not hang the system.
You can make an RT-thread block on a semaphore, and post it from the
interrupt handler.

Michael.

root (agn@city.dk) wrote:
> Michael Barabanov wrote:
> 
> > Could you please post the code you're running
> 
> Sorry. missed the code.