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.
According to my understanding the same task be done both in userspace or kernel.
The only open issue is if the kernel thread priority is higher then user threads priority.
We shall use pthread for userspace or kthread for kernel thread.
So, my question is:
When two threads are ready, does the kernel thread have higher priority over user thread ?
EDIT: 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 ?
Thank you!