Recent questions tagged process-synchronization

0 0 votes
1 1 answer
715
715 views
Your friend wants to design synchronization primitives and tells you that he would be better off by strictly ensuring that the processes alternate the critical section. Y...
0 0 votes
2 2 answers
716
716 views
Given below are two statements: one is labelled as Assertion $\text{A}$ and the other is labelled as Reason $\text{R}$.Assertion $\text{A}$: A process involves a library ...
0 0 votes
0 0 answers
545
545 views
Match List I with List IIList IList IIA. Critical regionI. Hoare's monitorB. Wait/signalII. Mutual exclusionC. Working setIII. Principle of localityD. DeadlockIV. Circula...
0 0 votes
1 1 answer
729
729 views
At a particular time of computation, the value of a counting semaphore is $7$. Then $20 \mathrm{p}$ operations and ' $\mathrm{x}$ ' $\mathrm{V}$ operations were completed...
0 0 votes
2 2 answers
2.2k
2.2k views
Sorry if this is a stupid question. But it really intrigued me. Same resources at different algorithms are telling different ways to test these stuffs.Here's an algorith...
0 0 votes
1 answers 1 answer
711
711 views
The answer is not given as (d), does pre emotion do not work in threads?Consider the following two-thread program, where initially value of integer counter = $0$ :Thread ...
0 0 votes
1 1 answer
697
697 views
Consider an operating system capable of loading and executing a single sequential user process at a time. The disk head scheduling algorithm used is first come first serv...
0 0 votes
1 1 answer
626
626 views
In design protocol of critical section problem, each process must ask permission to enter critical section in ________ code; it then executes in the critical section; onc...
0 0 votes
1 1 answer
567
567 views
Match $\text{List I}$ with $\text{List II}$$\text{List I}$$\text{List II}$$\text{A}$. IPC$\text{I}$. Resource Allocation$\text{B}$. Demand Paging$\text{II}$. Computationa...
0 0 votes
1 1 answer
686
686 views
Consider the following multi threaded code.volatile static int flag1= 0, flag2= 0; // code for thread 1 (or T1) flag1 = 1; if (flag2==0) code1(); // end of code for T1 //...
0 0 votes
0 0 answers
603
603 views
In Interested variable we found out that thereMutual Exclusion is guaranteed .Deadlock is also guaranteedSo because of deadlock can we say there is no Bounded Waiting as ...
1 1 vote
2 2 answers
1.2k
1.2k views
Which of the following statements is false?a) Disjoint processes need not use critical sectionb) Programs with critical sections can never be use simultaneously by more t...
0 0 votes
2 answers 2 answers
1.0k
1.0k views
A wait operation on a semaphore should not occur within a critical section controlled by that semaphore because:a) A deadlock will occurb) A semaphore is not a shared var...
1 1 vote
2 2 answers
1.2k
1.2k views
Consider the following pseudo‐code for a process $\textsf{Pi},$ where $\textsf{“shared boolean flag ”}$ is a variable declared in shared memory, initialized as:flag[0] = ...
0 0 votes
1 1 answer
1.3k
1.3k views
Please read below passage from 10th edition Operating System Concepts, pg. 202:5.1.3 Preemptive and Nonpreemptive SchedulingCPU-scheduling decisions may take place under ...
0 0 votes
1 1 answer
2.9k
2.9k views
incr(){    wait(s)    x = x+1    signal(s) } decr() {    wait(s)    x = x–1    signal(s) }Shared integer variable $\mathrm{x}$ initialized with $10.$There are five thread...
14 14 votes
5 5 answers
2.1k
2.1k views
Consider the following task graph and given task lengths (in time units). The unspecified $x$ and $y$ are non-negative numbers.Each edge $\mathrm{Ti} \rightarrow \mathrm{...
1 1 vote
1 1 answer
609
609 views
Since Dealock No Progressthen Does Progess No Deadlockbcoz contrapositive should be true.