Performance boost by writing an application in Kernel space rather than kernel space

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Performance boost by writing an application in Kernel space rather than kernel space

381 Views
lyfsci
Contributor III

Hi Experts,

I would like to write an application, which will better choice !!

  1. Writing a simple application in the User space and invoked during startup and run the system forever. (It seems to be easy but not meeting the time critical event)

(or)

2. Configure the kernel and disable the unwanted hardware modules and put the application in to the kernel thread. So it will be preemptive and tightly packed with less latency.

Labels (1)
0 Kudos
1 Reply

331 Views
igorpadykov
NXP Employee
NXP Employee

Hi lyf

in general performance is similar in both cases, however advantage

of user space application is that OS do not allow it to do bad things like

crashing the machine. You can refer below links for details since this is

generic linux question

Linux Threads Home Page: What are threads (user/kernel)?

operating system - What is the difference between the kernel space and the user space? - Stack Overf...

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos