Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I am writing an app and I need some suggestions as that what is the best way to inform another process of an event so it can continue to ...
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    1

    IPC - suggestions for synchronization of processes

    Hello,

    I am writing an app and I need some suggestions as that what is the best way to inform another process of an event so it can continue to do work.

    my app will fork a new process and i want the child process to wait until the parent process does some stuff after the fork( ). how can i make this work? whats the most common or best solution to do this kinda thing?
    a condition variable is only for threads right?
    a signal? setting an env variable? socket? pipe? writting to a file?

    thanks for the suggestions

  2. #2
    Just Joined!
    Join Date
    Mar 2007
    Posts
    3
    a semaphore would work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...