Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I noticed that serveral daemon invoked python seperately.
For example, I have both wicd and ibus daemon running on my machine. Instead of launching a single instance of python, the daemons run with two python instance at the same time in htop:

/usr/bin/python2 -O /usr/share/wicd/daemon/monitor.py
python2 /usr/share/ibus/ui/gtk/main.py

Is it a waste of doing that?
If yes, how can I improve this?
If no, why avoid putting all daemons run on a single python instance?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

No, it's not a waste. It is normal for separate programs to be running in separate processes, so that they couldn't (accidentally or intentionally) modify each other's state. Separate processes also mean that if one program crashes, all others are left unaffected.

share|improve this answer
    
Got it. Thanks! –  ylc Sep 8 '12 at 16:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.