Find the answer to your Linux question:
Results 1 to 1 of 1
Hi, I have created a posix semaphore. Is it possible to have a functionality, wherein I can reset the semaphore. ie All the tasks waiting for the semaphore will be ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    3

    List of suspended tasks on a semaphore/message queue

    Hi,
    I have created a posix semaphore.
    Is it possible to have a functionality, wherein I can reset the semaphore.
    ie All the tasks waiting for the semaphore will be signalled and will return with error values and the semaphore value will be set to its initial value.
    Is there a way to get a list of the tasks that are waiting for the posix semaphore and then send signals to them?

    Likewise, is there a way to clear a message queue created using the System V Call, of all its messages and signal to tasks waiting on that queue to return back?

    Please provide some solutions.
    Thanks.
    Taklu.
    Last edited by taklubaba; 11-22-2008 at 02:51 PM. Reason: changes

Posting Permissions

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