process related issue.. - Unix

This is a discussion on process related issue.. - Unix ; 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 ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: process related issue..

  1. process related issue..

    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.


  2. process related issue..

    t> I have come across a strange problem in "tracking of processes
    t> currently running on a system". [...]

    man ps


  3. Re: process related issue..

    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


+ Reply to Thread