Solved

Threads Starvation

Posted on 2013-01-02
5
416 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
Comment Utility
0
 

Author Comment

by:PrakashVarma
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now