Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Questions by ashutoshaay26
2
votes
1
answer
1
Concurrent Processes
Consider the program segment: x= 0; y=0; Cobegin begin x= 1; y= y + x; end begin y= 2; x= x + 3; end Coend; Which of the following indicates possible values for the variables when the segment finishes execution? (1) x= 1, y= 2 (2) x= 1, y= 3 (3) x= 4, y= 6 (a) 1 only (b) 1 & 2 only (c) 1 & 3 only (d) 2 & 3 only (e) 1, 2, 3
Consider the program segment:x= 0; y=0;Cobeginbeginx= 1;y= y + x;endbeginy= 2;x= x + 3;endCoend;Which of the following indicates possible values for the variables when th...
1.2k
views
asked
Sep 3, 2017
Operating System
operating-system
process-synchronization
+
–
3
votes
1
answer
2
Counting Semaphores
2. Assume that ‘C’ is a Counting Semaphore initialized to value ‘10’. Consider the following program segment: P(C); V(C); P(C); P(C); P(C); V(C); V(C) V(C); V(C); V(C); P(C); V(C); V(C); P(C) What is the value of C? a) 8 b)10 c)12 d)14
2. Assume that ‘C’ is a Counting Semaphore initialized to value ‘10’. Consider the followingprogram segment:P(C); V(C); P(C); P(C); P(C); V(C); V(C)V(C); V(C); V(...
4.8k
views
asked
Sep 3, 2017
Operating System
semaphore
process-synchronization
operating-system
+
–
1
votes
1
answer
3
Deterministic Push Down Automata
What is main difference between Deterministic Push down automata and simple Push down automata ?
What is main difference between Deterministic Push down automata and simple Push down automata ?
1.2k
views
asked
Aug 15, 2017
Theory of Computation
theory-of-computation
dpda
pushdown-automata
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register