LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2012, 10:04 AM   #1
ukernel
LQ Newbie
 
Registered: Dec 2011
Distribution: Arch Linux
Posts: 19

Rep: Reputation: Disabled
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?
 
Old 02-08-2012, 10:34 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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 ;}
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ACPID scripts only work when restart acpid from terminal jasonkhonlaw Linux - Laptop and Netbook 4 01-22-2020 11:06 AM
pty handler program Skaperen Linux - Software 1 01-29-2010 10:22 AM
[SOLVED] acpid "Solution: please add acpid to /etc/runlevel.conf to start before hal/dbus" linus72 Linux - General 2 10-04-2009 07:40 PM
Copying program for linux? like copy handler... randknu Ubuntu 3 02-10-2008 02:23 AM
Exiting program w/ pthreads from sig handler LogicG8 Programming 1 07-29-2004 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration