308 views
0 votes
0 votes
What is the difference between spinlock and deadlock?

2 Answers

0 votes
0 votes
Spinlock: This is the situation in which one or more processes are waiting for the LOCK to be released from the running process. Processes are in running as well as in waiting state.

ex: P1 and P2 are two processes. P1 is holding LOCK variable and executing if P2 comes for execution and wants LOCK, which is held by P1. This is spinlock.

Deadlock: This is the situation in which all processes are in waiting state in which processes are waiting for resources held by other processes.

Correct me if I am wrong.

Related questions

0 votes
0 votes
1 answer
2
Bikash Singh asked Feb 1, 2019
337 views
which of the following cause starvation?a->FCFSb->SJFc->RRd->priority
0 votes
0 votes
1 answer
3
csuprriya asked Feb 18, 2017
1,139 views
What is response time? Is it equal to waiting time in case of non-preemptive scheduling?