Guys, can anyone tell me

0

Guys, can anyone tell me why Option b is not the correct option??

Codes for the processes are given here ..

P1 :
while(true)
{
wants1 = true;
while(wants2 == true);
/* Critical Section */
wants1=false;
}

P2:
while(true)
{
wants2 = true;
while(wants1==true);
/* Critical Section */
wants2 =false;
}

admin edited question
    0
    Anamika Sharma (anonymous)

    b is not correct bcoz if the bounded waiting is not satisfies then there is a possibility of starvation but in this ques any proccess which is interstd cn entr the CS n if both are interested thn it will lead to a deadlock…..

    Anamika Sharma answered
      0
      Anamika Sharma (anonymous)

      anwer is d ….?

      Anamika Sharma answered
        0
        Sandip Mandal (anonymous)

        thanks Anamika.. yes it;s option d

        Sandip Mandal answered
          0
          Biswabhusan Jena (anonymous)

          wap to implement a queue using class template using pointers

          Biswabhusan Jena answered
            0
            Mayur Upadhye (anonymous)

            www.facebook.com/gatebenefit123

            Mayur Upadhye answered
              Add image to editor add image from link

              Question stats

              • Active
              • Views360 times
              • Answers0 answers
              • Followers1 follower
              Question and answer is powered by AnsPress