kernel threads and user threads priorities
<p>We try to evaluate if it is better to make some hw related task in user or in kernel.
The task have to respond to interrupt and do some task which shall copy data into physical (mapped) memory space.</p>

<p>According to my understanding the same task be done both in userspace or kernel.</p>

<p>The only open issue is if the kernel thread priority is higher then user threads priority.</p>

<p>We shall use <code>pthread</code> for userspace or <code>kthread</code> for kernel thread.</p>

<p>So, my question is: </p>

<p>When two threads are ready, does the kernel thread have higher priority over user thread ?</p>

<p><strong>EDIT:</strong>
If kthread_create was created with SCHED_FIFO and given priority x,
and pthread_create was created with SCHED_FIFO and given priority y,
and priority of pthread is higher than kthread, would still kthread get into scheduler before the user thread ?</p>

<p>Thank you!</p>