Recent questions tagged process-synchronization

3 3 votes
2 2 answers
191
191 views
Suppose $\texttt{x}$ is a condition variable inside a monitor.What happens when a process executes:$\texttt{x.wait()}$Mutual exclusion is established on variable $\texttt...
4 4 votes
1 1 answer
221
221 views
Two processes $P_i$ and $P_j$ use Peterson’s solution:$\texttt{flag[i] = TRUE;}$$\texttt{turn = j;}$$\texttt{while(flag[j] \&\& turn == j);}$$\texttt{Critical Section}$$\...
2 2 votes
1 1 answer
174
174 views
Consider the following solution for process $P_i$:$\texttt{while (turn != i);}$$\texttt{Critical Section}$$\texttt{turn = j;}$Which of the following statements are correc...
4 4 votes
1 1 answer
220
220 views
Two processes use the following symmetric solution:For process $P_i$:$\texttt{flag[i] = TRUE;}$$\texttt{while (flag[j]);}$$\texttt{Critical Section}$$\texttt{flag[i] = FA...
3 3 votes
1 1 answer
279
279 views
Consider the following entry and exit code used by two processes:$\texttt{while(lock);}$$\texttt{lock = TRUE;}$$\texttt{Critical Section}$$\texttt{lock = FALSE;}$Initiall...
3 3 votes
1 1 answer
237
237 views
Which of the following statements are correct?Mutual exclusion ensures that if one process is executing in its critical section, no other process can execute in its criti...
1 1 vote
1 1 answer
199
199 views
Diffrence between Bounded Waiting and Strvation in synchronizationand why both not related to each other...?
2 2 votes
2 2 answers
417
417 views
1 1 vote
0 0 answers
259
259 views
Q1-Consider the details of a paging system given below to answer the questions that follow.Page size 256 bytes, virtual memory address space of 2^14 bytes, physical memor...
0 0 votes
0 0 answers
199
199 views
Consider a system consisting of processes P1, P2, ..., Pn, each of which has a unique priority number. Write a monitor that allocates three identical printers to these pr...
0 0 votes
0 0 answers
485
485 views
Identify the correct statement(s) from the followings with respect to Spinlock SemaphoresThe name refers to busy waiting semaphores.They are not useful when the locks are...
0 0 votes
1 1 answer
489
489 views
Which of the following statements are TRUE about mutual exclusion in concurrent programming?Mutual exclusion ensures that only one process can be in a critical section at...
0 0 votes
1 1 answer
357
357 views
Which of the following statements are CORRECT ?A process always check state of currently executing process to enter critical schema.Spin locks uses busy waiting.Periodica...
0 0 votes
2 2 answers
484
484 views
Consider the following two procedures proc$1$ and proc$2$, which run in parallel after initialising initialising x to $0$. Running in parallel means that between any two ...