Results 1 to 6 of 6
Hi all,
Have anyone encounter a case whereby you start an application once and using ps -ef | grep, it displays a few instances of that application. By pkill that ...
- 02-12-2007 #1Just Joined!
- Join Date
- Feb 2007
- Posts
- 14
Mulitiple Instances of an application
Hi all,
Have anyone encounter a case whereby you start an application once and using ps -ef | grep, it displays a few instances of that application. By pkill that application all of the instances were killed. Please advise!
Regards
Boon Siang
- 02-13-2007 #2
Well, yes, httpd for example will run more than one instance. You will notice this with other multi-threaded programs too. pkill will kill all instances of a given name.
- 02-15-2007 #3Just Joined!
- Join Date
- Feb 2007
- Posts
- 14
Thanks for the information. So is there any way to prevent this kind of situation from occuring in a self-coded applcation?
- 02-15-2007 #4
I'm sure there is, but you'd have to ask a programmer what you would need to write to implement this functionality.
- 02-16-2007 #5Just Joined!
- Join Date
- Feb 2007
- Posts
- 14
Thanks a lot!
- 02-17-2007 #6Just Joined!
- Join Date
- Feb 2007
- Posts
- 41
Are you saying you are writing a program and you only want ONE process to start?
An application which you write will not start more than one process unless you tell it to. This is not a trivial matter. The same goes with threads which for simplicities sake you can think of as mini processes.


Reply With Quote