logo

Crowdly

Browser

Додати до Chrome

Questions Bank (1579648 total)

When does the man need to send the order to his client?
0%
0%
0%
0%
Переглянути це питання

Binary semaphore S1=1  and S2=0

int x=10

p0()

{

          p(s1)

          x=x+1

       v(s2)

}

        ---------------        p1()

{

          p(s2)

          x=x+1

       v(s1)

}

what will be the value of x  after execution of p0 and p1?

0%
0%
0%
Переглянути це питання

The enter_CS() and leave_CS() functions to implement critical section of a process are realized using test-and-set instruction as follows:

void enter_CS(X)

{

while(test-and-set(X));

}

void leave_CS(X)

{

X = 0;

}

In the above solution, X is a memory location associated with the C S and is initialized to 0. The above construct used by    process p1 and p2. So above construct leads to deadlock?

0%
100%
Переглянути це питання
Where are is people standing?
0%
0%
0%
0%
Переглянути це питання
Why can the woman not find the Woodley file?
0%
0%
100%
0%
Переглянути це питання
What should the woman do with the pen?
0%
0%
100%
0%
Переглянути це питання
Why is the woman asking about money?
0%
0%
100%
0%
Переглянути це питання
What does the woman fear has happened to the ticket?
0%
0%
100%
0%
Переглянути це питання
Who is the woman talking to?
0%
0%
0%
0%
Переглянути це питання
Why does Joe want to use Chris’s office?
0%
0%
0%
0%
Переглянути це питання