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

Re: Thread Context



On 7/5/06, Om. <om.turyx@xxxxxxxxx> wrote:
On 7/4/06, Rajat Jain <rajat.noida.india@xxxxxxxxx> wrote:
> > ".  What are the precautions you have
> > to take while accessing the function from thread context .
>
> "Thou shalt not sleep!"
How can this be true? Thread context (AFA I can understand, must mean
Kernel thread context here) can sleep.

Oops ... sorry ... my mind and my fingers did not go well along with each other. Om is right. I think by thread context you mean process context. And if you can call a function in only process context, then most probably this is because it might sleep, which is only allowed in this context.

Thanks,

Rajat

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/