which of the following can prevent deadlocks

0

which of the following can prevent deadlocks ?
a) semaphores
b)interrupts
c) system calls
d) none

Ravi Garg edited question
    0
    Ritu Rahar (anonymous)

    semaphores?

    Ritu Rahar answered
      0
      Madhav Purohit (anonymous)

      no semaphore cant b answer instead improper use of simaphore leads to deadlock answer is c system calls

      Madhav Purohit answered
        0
        Ritu Rahar (anonymous)

        its “can prevent”…..dey can,if properly used.

        Ritu Rahar answered
          0
          Madhav Purohit (anonymous)

          @Ritu Rahar: how can semaphores prevent deadlock?

          Semaphore are used to synchronize the process execution.

          See use of semaphore makes mutual exclusion possible which is one of the neccesary condition of deadlock (among other circular wait, hold and wait, no preemption) so use of semaphore could cause a deadlock instead…:)

          Madhav Purohit answered
            0
            Ritu Rahar (anonymous)

            hmmm..

            Ritu Rahar answered
              Add image to editor add image from link

              Question stats

              • Active
              • Views744 times
              • Answers6 answers
              • Followers1 follower
              Question and answer is powered by AnsPress