Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged usergate1997
0
votes
0
answers
1
#gate #1997
A language L is a subset of Pascal with the following constructs: a). Expressions involving the operators ‘+’ and ‘<‘ only b). Assignment statements c). ‘while’ statements and d). Compound statements with the syntax ‘begin…………..end’ Give an unambiguous grammar for L.
A language L is a subset of Pascal with the following constructs:a). Expressions involving the operators ‘+’ and ‘<‘ onlyb). Assignment statementsc). ‘while’ ...
Gangani_Son
232
views
Gangani_Son
asked
Dec 4, 2018
Compiler Design
usergate1997
usermod
grammar
+
–
3
votes
1
answer
2
GATE1997
What is S1,S2?and how to to decide their scope for variable access? Procedure A; x,y:intger; Procedure B; x,z:real S1 end B; Procedure C; i:integer; S2 end C; end A; The variables accessible in S1 and S2 are (A) x of A, y, x of B and z in S1 and x of B, y and i in S2 (B) x of B, ... z in S1 and x of B, i and z in S2 (C) x of B, z and y in S1 and x of A, i and y in S2 (D) None of the above
What is S1,S2?and how to to decide their scope for variable access? Procedure A; x,y:intger; Procedure B; x,z:real S1 end B; Procedure C; i:integer; S2 end C; end A;The v...
Abhisek Tiwari 4
1.2k
views
Abhisek Tiwari 4
asked
Oct 20, 2018
Programming in C
usergate1997
usermod
normal
data-structures
+
–
5
votes
1
answer
3
Modified gate1997
My question is little different. Each Process Pi, i = 1....9 is coded as follows repeat P(mutex) {Critical section} V(mutex) forever The code for P10 is identical except it uses V(mutex) in place of P(mutex). What is the ... you can signal semaphore from any other thread (or process), so semaphores are more suitable for some synchronization problems like producer-consumer."
My question is little different.Each Process Pi, i = 1....9 is coded as followsrepeat P(mutex) {Critical section} V(mutex)foreverThe code for P10 is identical ex...
Akash Kumar Roy
1.2k
views
Akash Kumar Roy
asked
Mar 27, 2018
Operating System
mutex
process-synchronization
operating-system
usergate1997
usergate
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register