LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what's more effiecient? acpid handler.sh or C-program (https://www.linuxquestions.org/questions/linux-newbie-8/whats-more-effiecient-acpid-handler-sh-or-c-program-928318/)

ukernel 02-08-2012 10:04 AM

what's more effiecient? acpid handler.sh or C-program
 
Hello,

What's more efficient, to use a 100 line C-program to control keyboard backlight or acpid?

Tinkster 02-08-2012 10:34 AM

That depends on how well the C program is coded, and how many
resources it eats. A shell (bash) will always consumes ~ 2 MB
of RAM, and most likely show a bit more overhead than a well-
written C program.

At the end of the day the only way to find out is to write it
and try ;}


All times are GMT -5. The time now is 02:23 PM.