Solved

Threads Starvation

Posted on 2013-01-02
5
419 Views
Last Modified: 2013-02-28
Hi Friends,

please explain what is Starvation and what are greedy threads in java?
0
Comment
Question by:PrakashVarma
  • 2
  • 2
5 Comments
 
LVL 16

Expert Comment

by:krakatoa
ID: 38737478
0
 

Author Comment

by:PrakashVarma
ID: 38738911
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
 
LVL 16

Expert Comment

by:krakatoa
ID: 38739588
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
 
LVL 16

Accepted Solution

by:
Valeri earned 500 total points
ID: 38743695
this article explains what is "starvation" and offers the solution
http://tutorials.jenkov.com/java-concurrency/starvation-and-fairness.html
0
 

Author Closing Comment

by:PrakashVarma
ID: 38937629
Thank you
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question