[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 431
  • Last Modified:

Threads Starvation

Hi Friends,

please explain what is Starvation and what are greedy threads in java?
0
PrakashVarma
Asked:
PrakashVarma
  • 2
  • 2
1 Solution
 
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
 
ValeriCommented:
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
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now