Suppose a processor does not have any stack pointer register. Which of the following statements is true?
A
It cannot have subroutine call instruction
B
It can have subroutine call instruction, but no nested subroutine calls
C
Nested subroutine calls are possible, but interrupts are not
D
All sequences of subroutine call and also interrupts are possible
3
GATE CSE 2000
MCQ (Single Correct Answer)
Let m[0] ..m[4] be mutexes (binary semaphores) and P[0] ...P[4] be processes. Suppose each process P[i] executes the following:
wait (m[i]); wait (m(m[(i+1) mod 4]))0; ....... release (m[i]); release (m[(i+1) mod 4]);
This could cause
A
Thrashing
B
Deadlock
C
Starvation, but not the deadlock
D
None of the above
4
GATE CSE 1998
MCQ (Single Correct Answer)
A counting semaphore was initialized to 10. Then 6 P (wait) operations and 4 V (signal) operations were completed on this semaphore. The resulting value of the semaphore
A
0
B
8
C
10
D
12
Write for Us
Do you want to write for us? Help us by contributing to our platform.