Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: java se 7 question

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Posts
    4
    My Mood
    Stressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default java se 7 question

    Which of the following statements related to deadlock is correct?



    Dead lock occurs when threads are not able to perform any real work and it becomes too busy to respond each other.
    Dead lock is caused by starvation, which in turn is caused by a live lock.
    Thread A and B are said to be deadlocked when Thread A is blocked waiting for Thread B to release a resource, while Thread B is blocked waiting for Thread A to release another resource.
    All of the above


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: java se 7 question

    Move from What's wrong. Not a java programming problem.

    What responses did you get from your internet search? Did you have any questions about them?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Grand Poobah
    Join Date
    Mar 2011
    Posts
    1,545
    My Mood
    Grumpy
    Thanks
    0
    Thanked 167 Times in 158 Posts

    Default Re: java se 7 question

    Simple. Don't hand in your homework, get a F and wait for teacher to hand out answers.

    We aren't doing it for you.
    Improving the world one idiot at a time!

  4. #4
    Member
    Join Date
    May 2014
    Posts
    36
    Thanks
    6
    Thanked 3 Times in 3 Posts

    Default Re: java se 7 question

    Quote Originally Posted by Junky View Post
    Simple. Don't hand in your homework, get a F and wait for teacher to hand out answers.

    We aren't doing it for you.
    'Nuff said
    English is not my native language (Typo alert).

  5. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: java se 7 question

    Threads moved and merged.

    Please do not post multiple threads with the same title or on the same topic. Beyond that, what Norm and Junky said.

  6. #6
    Junior Member
    Join Date
    Oct 2013
    Posts
    4
    My Mood
    Stressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java se 7 question

    Quote Originally Posted by Norm View Post
    Move from What's wrong. Not a java programming problem.

    What responses did you get from your internet search? Did you have any questions about them?
    which I didn't get detailed answer some question only understood properly please for the question particularly about deadlock and try with resources

  7. #7
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: java se 7 question

    What did you find when you searched "java deadlock"? What questions do you have about the information you found in those links?

  8. #8
    Junior Member
    Join Date
    Oct 2013
    Posts
    4
    My Mood
    Stressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java se 7 question

    two or more threads are blocked forever waiting for the others to release a resource

    --- Update ---

    there is any relationship between starvation and livelock

Similar Threads

  1. Java Question
    By biman001 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 16th, 2014, 06:14 AM
  2. Replies: 1
    Last Post: November 1st, 2012, 07:54 AM
  3. Help with a java question...
    By Huw in forum Java Theory & Questions
    Replies: 8
    Last Post: September 20th, 2012, 01:25 PM
  4. Challenging Java Question: Test your Java skill by grouping these terms
    By karthickk3 in forum Java Theory & Questions
    Replies: 3
    Last Post: July 18th, 2012, 10:10 PM
  5. Java EE Question
    By djl1990 in forum Java Theory & Questions
    Replies: 2
    Last Post: May 12th, 2012, 12:42 PM