Re: process related issue..
On Oct 17, 2:31 pm, talk_2_piy...@yahoo.co.in wrote:[color=blue]
> 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.[/color]
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...