Questions with regards to Linux OS?
> 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.