Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Threads Starvation

Posted on 2013-01-02
5
Medium Priority
?
425 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
A solution for Fortify Path Manipulation.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

618 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