OS_GetCSemaValue

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Please help me clearing my doubt.



    I have one project to make it stable. In this project
    , one
    task need to terminate and hence, semaphore and queue associated to it also
    need to be deleted at run time. semaphore is counting semaphore (used as
    binary). During deletion any task may be waiting for semaphore. For error free
    deletion, which one is best method? set the semaphore value positive value and
    delete ; or signal the semaphore and delete.Can setting the semaphore value
    positive at run time make blocking task free?





    Regards,



    Harsh

    The post was edited 1 time, last by techharsh ().