Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5 : 0 5 ) Select the correct statements regarding mutex lock to prevent race condition. 1 . a process must acquire the lock before
: Select the correct statements regarding mutex lock to prevent race condition.
a process must acquire the lock before entering a critical section
II a prOcess need not acquire the lock before entering a critical section
III. it releases the lock when it exits the critical section
IV a process must acquire the lock when it exits the critical section
C IlIl and IV
A l and IlI
B Il and IV
A deadlock situation in process synchronization arises when:
A TWo processes compete for the same resource.
B TWo or more processes wait indefinitely for resources held by each other.
C A process is preempted by the operating system.
D A memory access violation Occurs.
In nonpreemptive approach, the kernel is
A Free from race condition
C Could allow process execution in parallelism fashion
D I and IV
B Could have race condition
D None of the above
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started