Awesome q2a theme
0 votes
45 views

ago in Operating System by (2 points) | 45 views
0
print pattern (0011+0101 +1001+0110+ 1010+1100)* + 11 + 00
0
something wrong in loop condition.

ignore the question. It may lead to infinite loop too.

if P1 : while(lock==0); and P2 : while(lock==1);

then option B correct.

 

if P1 : while(lock!=0); and P2 : while(lock!=1);

 

then option C correct.
0
why given conditions are wrong? @Shaik?
0
both are same condition, rt ?

equal to 0 or not equal to 1 means same for the variable which have the value either 1 or 0.
0
Answer given is option a
0
let the question is right, you entered in any process and printed something. then lock can be modified into 0. then while loop leads to infinite loop. in that case how Option A is right ?
0
The only characters ever printed are $0$ and $1$ so such string will always belong to $(0+1)^*$ ..?
0
surely NO.

Discussing a Non-standard question for matching the answer is waste :(

Please log in or register to answer this question.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
8,953 questions
3,113 answers
14,322 comments
95,780 users