Threads Starvation

Hi Friends,

please explain what is Starvation and what are greedy threads in java?
PrakashVarmaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ValeriConnect With a Mentor Commented:
this article explains what is "starvation" and offers the solution
http://tutorials.jenkov.com/java-concurrency/starvation-and-fairness.html
0
 
PrakashVarmaAuthor Commented:
Thank you..

As per my understanding greedy threads running threads and they won't give any chance to another threads to enter in to lock code(Synchronized code)

please correct me if i'm wrong.
0
 
krakatoaCommented:
I think that's the case, yes. There are also differences in how operating systems handle threads in terms of CPU time - time slicing on Unix is different from, say, Windows.
0
 
PrakashVarmaAuthor Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.