multithreading - If starvation of processes is occurred, does it mean that there will be a deadlock? -


if starvation of processes occurred, mean there deadlock ??? explanation if yes, , if no ?!

there 4 necessary , sufficient conditions deadlock occur (called coffman conditions):

  1. mutual exclusion
  2. acquire , wait
  3. no preemption
  4. circular wait

what you're asking is, essentially: will deadlock occur if there's (albeit indefinite) wait?. answer is: no. 4 conditions must met in order deadlock occur.

see more here on wikipedia.


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -