|
Home > Archive > Unix Programming > October 2007 > process related issue..
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
process related issue..
|
|
| talk_2_piyush@yahoo.co.in 2007-10-17, 7:32 am |
| hi,
I have come across a strange problem in "tracking of processes
currently running on a system". It can be dealt with by
using the scheme of semaphores of a process.These semaphores can be
tracked to see whether the process is running or not. .
Secondly,we can have a file which will contain the pid of the
processes currently running on. This file can be tracked....But
there are number of issues with these schemes .Can anyone suggest
me a perfect technique..to deal with it..
cheers Piyush.
| |
| talk_2_piyush@yahoo.co.in 2007-10-19, 7:32 am |
| On Oct 17, 2:31 pm, talk_2_piy...@yahoo.co.in wrote:
> hi,
> I have come across a strange problem in "tracking of processes
> currently running on a system". It can be dealt with by
> using the scheme of semaphores of a process.These semaphores can be
> tracked to see whether the process is running or not. .
> Secondly,we can have a file which will contain the pid of the
> processes currently running on. This file can be tracked....But
> there are number of issues with these schemes .Can anyone suggest
> me a perfect technique..to deal with it..
>
> cheers Piyush.
hi...the problem is that suppose that an instance of a process is
running on a system.and before starting another instance of the same
process i need to know whether any previous instance of that process
is running on the system or not. i can do it with the help of
semaphores and checking that semaphore to see if an instance is
running. or i can create a file wfich will contain the pid of the
running process. i can refer to the file to see if see if an instance
is running or not. both the schemes have some security
issues.......i would like to have some better scheme for it...
cheers Piyush
|
|
|
|
|