Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Questions with regards to Linux OS?

linux OS regards
0
Posted

Questions with regards to Linux OS?

0

> I have some basic questions with regards to Linux OS > 1) What types of threads (kernel/user space) and Bottom-Handler can >exist inside a task-list?? Both kernel and user space threads can go into a *wait queue*. A *task queue*, though unfortunately named, is something else. A task queue basically has lists of callbacks that are called at various times. These are not threads. > 2) Can I add a user space thread to a task-list? You cannot add threads to task queues. You can use a wait queue to block a thread. This is done by adding a thread to the wait queue, changing its state to something like TASK_INTERRUPTIBLE (interruptible sleep) and calling schedule() or schedule_timeout(). > 3) I would like to change a thread’s priority within a task-list >from a bottom handler. How can I do it? With great difficulty, I suspect. You might be better off just having the thread adjust its priority just before sleeping on that queue.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123