Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8204581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:56:29+00:00 2026-06-07T07:56:29+00:00

I took a thread dump of a Java program, and it said Found one

  • 0

I took a thread dump of a Java program, and it said Found one Java-level deadlock.

Can I confidently affirm that there is a bug in this program?

To me, it sounds like a deadlock is a programming problem, and the only solution is to fix the source code.
Am I wrong? Are there circumstances where a deadlock is a normal part of the program’s execution, and the deadlock eventually somehow disappears?

It is a rather conventional Java web application with hundreds of users. The two threads that are waiting for each other seem to be one Tomcat request worker and one Lucene indexing job, both using sun.misc.Unsafe.park. As far as I know, the program does not have any thread monitoring meta-sophistication.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:56:30+00:00Added an answer on June 7, 2026 at 7:56 am

    Are there circumstances where a deadlock is a normal part of the program’s execution, and the deadlock eventually somehow disappears?

    In theory yes, depending on the kind of deadlock.

    For example, if two threads are Object.wait() deadlocked, one of the wait calls could time out (eventually). Alternatively, a third thread could break the deadlock by calling Thread.interrupt() on one of the deadlocked threads. This might be done as a deliberate deadlock-breaking strategy, or for some other reason.

    On the other hand, a deadlock on a acquiring primitive mutexes won’t ever go away of its own accord, and cannot be broken short of calling one of the deprecated Thread stop/kill methods. And if you do that, you are liable to leave data structures in an intermediate state, making it problematic to continue after breaking the lock.


    The key thing to look for is whether the blocking action is interruptible; e.g. whether it can throw an InterruptedException or similar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a thread in a Java web application that causes a java.lang.OutOfMemoryError: Java
I have a very simple java applet that I took from here: http://docs.oracle.com/javase/tutorial/deployment/applet/subclass.html import
My server database took too long to run two sql queries by separate thread.
it took me some time to find out that both Eclipse and Aptana get
>My previous thread< I created this one,because I installed WinXP on VMBox and I
There is a folder that contains 1000s of small text files. I aim to
Basically, I have one div(divNew) which is being populated with content from another page(thread.php)
Exception in thread main java.lang.IllegalArgumentException: Fetcher: No agents listed in 'http.agent.name' property. at org.apache.nutch.fetcher.Fetcher.checkConfiguration(Fetcher.java:1166)
Taking this thread to the next level and now making a Main.as class to
I found the contents of this thread quite useful! How to delete an element

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.