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
Answers by Overflow04
3
votes
1
GATE CSE 2021 Set 2 | Question: 42
Consider the following multi-threaded code segment (in a mix of C and pseudo-code), invoked by two processes $P_1$ and $P_2$, and each of the processes spawns two threads $T_1$ and $T_2$: int x = 0; // global Lock L1; // global main () { create a ... the value of $y$ as $2.$ Both $T_1$ and $T_2$, in both the processes, will print the value of $y$ as $1.$
Consider the following multi-threaded code segment (in a mix of C and pseudo-code), invoked by two processes $P_1$ and $P_2$, and each of the processes ...
10.3k
views
answered
Dec 11, 2022
Operating System
gatecse-2021-set2
multiple-selects
operating-system
threads
2-marks
+
–
0
votes
2
GATE CSE 1994 | Question: 2.2
On the set $N$ of non-negative integers, the binary operation ______ is associative and non-commutative.
On the set $N$ of non-negative integers, the binary operation ______ is associative and non-commutative.
5.8k
views
answered
Sep 9, 2022
Set Theory & Algebra
gate1994
set-theory&algebra
normal
group-theory
binary-operation
fill-in-the-blanks
+
–
0
votes
3
GATE CSE 1991 | Question: 09b
For the following code, indicate the output if static scope rules dynamic scope rules are used var a,b : integer; procedure P; a := 5; b := 10; end {P}; procedure Q; var a, b : integer; P; end {Q}; begin a := 1; b := 2; Q; Write ('a = ', a, 'b = ', b); end
For the following code, indicate the output if static scope rulesdynamic scope rulesare usedvar a,b : integer; procedure P; a := 5; b := 10; end {P}; procedure Q; var a, ...
4.3k
views
answered
Sep 5, 2022
Compiler Design
gate1991
runtime-environment
normal
compiler-design
parameter-passing
descriptive
+
–
0
votes
4
GATE CSE 1990 | Question: 5-b
Show with the help of a block diagram how the Boolean function : $f=AB+BC+CA$ can be realised using only a $4:1$ multiplexer.
Show with the help of a block diagram how the Boolean function :$f=AB+BC+CA$can be realised using only a $4:1$ multiplexer.
4.5k
views
answered
Sep 4, 2022
Digital Logic
gate1990
descriptive
digital-logic
combinational-circuit
multiplexer
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register