Hi, help please. Question 5 5 pts Consider the implementation of the x.wait oper
ID: 3866451 • Letter: H
Question
Hi, help please.
Question 5 5 pts Consider the implementation of the x.wait operation on monitor condition variable x, as described in the textbook and on slide 5.48: x_count+; if (next_count 8) signal (next); else signal (nutox); wait(x_sem) x_counL- What happens if the implementation for wait) is changed to the following? count++ wait(x sem) if (next_count >) signal (next); else signal (mutex); x count O the process that calls the procedure that does x.wait) will block but another process can come later and call x.signal), resuming it It opens up the possibility of deadlock if a second process calls y.wait). where y is another condition variable. () the code works as before The first process that enters a monitor procedure that calls wait) on a condition variable will lock the monitor indefinitely.Explanation / Answer
5.
The process that calls the procedure that does x.wait() will block but another process can come later and call x.signal(), resuming it.
Option 1 is correct.
Explanation:
x.wait() will block the arrivel other process, it means other process need to wait some time.
call x.signal(), it gives the access or resuming the process.
6.
Yes, always
Option 1 is correct.
Explanation:
FIFO order :
The full form of FIFO is "First in First Out". Here the process which is entered first that will out first.
Bounded waiting :
Bounded waiting refers to the number of times that other processes are allowed to process that means it gives a chance to enter their critical sections.
Certain process has made a request to enter its critical section and before that request is granted.
Observe the algorithm :
The maintaining the list of processes waiting as FIFO order.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.