Thread problem or jvm problem?

Hello, I've posted message on this link and now I've finished my project. Now, I have a different problem: that's why I'm posting this message here.
if you want me to post my project code, I can , but I think it's not necessary for now... So, there are 5 classes; Main, Thread1 extends Thread, thread2 extends Thread, Thread3 extends Thread and ThreadFactory... in main method; factory instance is called for the creation of threads; so in main three type of thread instance created by factory. And right after that threads starts running and thread1 finished first, thread2 finished second, and thred3 finished third; However, the program itself never ends. There is a problem with thread endings. I've also make dubugging. Main thread creates the three of them and first main thread finishes second thread1 and the other three never finishes... keeps running.
when main thread end it's state becomes zombie and thread1 also becomes zombie tooo.... but the other 2 of them never ends. I've tried may� things to do that: I've used finalyze() method too. Nothing chanced.
I guessed that this may happen becouse of JVM... so what do you suggest for ending threads in a sequence like thread1, thread2, thread3, main?

no help?

Similar Messages

  • Suddenly, I've been put on multiple threads over multiple firefox problems, which is filling up my inbox. How do I get out of these?

    Details? I posted a question about one problem (for which no answers have been offered, but that's okay) and somehow, I've become part of multiple threads about various firefox problems. I have no interest in any of these questions/problems.
    How do I get out of these threads? I get about 15-20 emails a day! Firefox is by far the worst community I've even been dragged into....

    Sorry you are having problems.
    Have a look at your settings in the dropdown from the username or https://support.mozilla.org/en-US/users/settings
    Not too sure what you could subscribe to accidentally that causes that behaviour though.
    It would be interesting to know what option caused all the email. If something has gone wrong and you are getting e-mails that you should not be getting we can refer this to the admins to look into. The Firefox sumo community certainly does not intentionally spam, and if you are having a problem lets find out more, because others may have a problem and not have reported it.

  • Monitor thread stacks in JVM

    Hi,
    I've a problem with my app, when my server runs for a long time, the memory used by the java process increases.
    I investigate this : the use of the heap seems to be good (no memory leak), i've used pmap for retreiving the use of memory by my process and i've seen that the number of range of memory reserved for [anon] increases (about 520K each times).
    I think that it is thread stack reserved but not freed.
    My question is : How can i link a memory address reservation with a thread (if it's possible) ??
    I use a JDK 1.5.0_10 un der RedHat Enterprise 3 Updt 4.
    Thanks

    pls tell me thread running in jvm or operating systemIIRC, unless you are using a very old JVM (e.g. pre 1.2) or are explicitly specifying green threads (which I believe was still possible even in 1.2?) then all threading using native threads. As mentioned above, the mapping between Java thread objects and the native threads is is highly dependent on the OS (especially when it comes to thread priority).
    This document goes into much more detail: http://java.sun.com/docs/hotspot/threads/threads.html
    - N

  • Who can solve my problem? My problem in below.

    Who can solve my problem? My problem in below.

    hi,my problem now is :
    exception
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
         net.sf.hibernate.examples.quickstart.HibernateUtil.currentSession(HibernateUtil.java:24)
         org.apache.jsp.testCat_jsp._jspService(testCat_jsp.java:65)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    package net.sf.hibernate.examples.quickstart;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import net.sf.hibernate.*;
    import net.sf.hibernate.cfg.*;
    public class HibernateUtil {
    private static Log log = LogFactory.getLog(HibernateUtil.class);
    private static SessionFactory sessionFactory ;
    static {
    try {
    // Create the SessionFactory
    sessionFactory = new Configuration().configure().buildSessionFactory();
    catch (Throwable ex) {
    log.error("Initial SessionFactory creation failed.", ex);
    System.out.println(ex.toString());
    public static final ThreadLocal session = new ThreadLocal();
    public static Session currentSession() throws HibernateException {
    Session s = (Session) session.get();
    // Open a new Session, if this Thread has none yet
    if (s == null) {
    s = sessionFactory.openSession();
    session.set(s);
    return s;
    public static void closeSession() throws HibernateException {
    Session s = (Session) session.get();
    session.set(null);
    if (s != null)
    s.close();
    }

  • I Ipod class wont play TED and other video podcasts.  The genious bar could not figure out the problem.  This problem is not isolated to a single computer.  Secondly, the convert to ipod version feature in Itunes does not resolve the problem.

    My Ipod classic wont play TED, The Grid, Techzilla and other video podcasts (but not all video podcasts).  The genious bar could not figure out the problem. Instead, the Apple store gave me credit towards a new classic, which produced the same problem.  This problem is not isolated to a single computer.  Secondly, the convert to ipod version feature in Itunes does not resolve the problem.  Lastly, I tried restoring the ipod to no avail.  I've heard this is a video codec problem. 

    See this extensive older thread on the issue.
    https://discussions.apple.com/thread/2813428?start=45&tstart=0
    B-rock

  • Photoshop CS2 Upgrade Installation Problems w/ Vista Problems

    I recently purchased a new laptop w/ Windows Vista which I'm trying to install my copy of Photoshop CS2 onto. My Photoshop license is an upgrade license ... originally upgraded from Photoshop v4.0.
    When installing an upgrade copy of PS CS2, it requires proof of your previous version in order to verify you're a legitimate upgrader. This works fine if you're upgrading from a version of Photoshop after 5.x ...you simply insert your CD and the installation continues. The installation process is less straight-forward for users like myself ... installing from an upgraded version prior to 5. I'm required to call Adobe ... and conduct a phone verification procedure where I give them a code displayed on the screen during installation and they give me a response code to type into the installation form.
    I deauthorized my old laptop ... start the installation routine on my new laptop ... call Adobe w/ my verification code ... enter the response code (which is accepted) and complete the installation without any problems. My problem occurs when I go to run the software. The startup screen indicates that the software is still in "Tryout Mode", and the first window I'm presented with is the "Adobe Activation" window requesting my serial number. If I try to enter my CS2 serial number it is rejected with the message:
    "You must enter a valid serial number before activating online or viewing activation options. Please check your serial number and re-enter it, or click the Purchase button to buy a copy of this product"
    The thing is ... this IS a valid serial number. I've confirmed this with Adobe. (It's probably an upgrade serial number, which is why the software is rejecting it). I called Adobe and they're now telling me that I must enter a paid-support agreement in order to receive help installing my software. They claim their software is working correctly, and it must be a problem with my computer.
    Has anybody experienced a problem like this? I refuse to pay more for something that worked fine on XP just to use it on Vista due to bugs in their installation and activation routine.

    function(){return A.apply(null,[this].concat($A(arguments)))}
    mthight wrote:
    Have the bugs of using with Vista been fixed, or still not working? thanks,
    I know this is an old problem, but surely there is an answer to fix the problem by now...
    What problems?  I used Photoshop CS2 with Vista with no problems (I still have it installed on a Vista system if you'd like me to check anything in particular).  CS3 and CS4 worked well as well.  Haven't tried CS5 on Vista as I have moved up to Windows 7, but I suspect it works just fine.
    -Noel

  • I can not eliminate ASK engine from the list. It came back by itself. Please, tel me how I can eliminate this problem. Another problem, this browser is no longer compatible with some institutions. This new version might have some problems.

    '''I can not eliminate ASK engine from the list. It came back by itself. Please, tel me how I can eliminate this problem.
    Another problem, this browser is no longer compatible with some institutions. .'''

    Step by step, how did you arrive at seeing this agreement?

  • "Problem with Trial - problem loading trial period for Adobe Photoshop CS3"

    Hello,
    I installed Photoshop CS3 Trial and whenever I run it and choose to begin my trial period I get the following error message:
    "Problem with Trial - problem loading trial period for Adobe Photoshop CS3".
    I tried uninstalling and reinstalling, and even ran the Adobe CS3Clean Script but nothing seems to help.
    I should note I never installed any earlier version of Photoshop on my system (I use a fresh copy of Windows XP with only a few programs installed).
    Any suggestions will be appreciated.
    Thanks,
    David

    i had the trial of photoshop on and the trial has run out my friend has given me a disk with adobe photoshop on and i cant do it beacause of the regestry code the photoshop puts in after the trial has ended to tell my pc that i cant have photoshop on my computer again :(:( now i have herd that you can remove the codes but it is quite hard well iam willing for this challenge and if anyone could help me i would reall welcome your help or if anybody has got the link to a tutorial to tell me hoe to do it i would aprecitae that to thank you all very much and post bak soon please

  • Getting Problem while publishing Problem while publishing java.lang.IllegalArgumentExcep

    getting Problem while publishing Problem while publishing java.lang.IllegalArgumentExcep while deploying persistance with ejb sample application into cloud. can any one please tell me why i am getting this?

    Hi Goutham,
    I am facing the same issue. Please let me know how you have resolved it.

  • I know why coming ios 7 for ipod 4g. this is not my problem its your problem , please make for ipod 4g

    i know why coming ios 7 for ipod 4g.
    this is not my problem its your problem
    , please make for ipod 4g

    mohammad mhp wrote:
    iknow about this
    i like apple make ios 7 for 128 or 256 RAM
    plz i want it
    Apple would have to strip so many features out of iOS 7 to make it work on your iPod that about all you'd have would be iOS 6 with different icons. So as the others have said, this is not going to happen. If you want iOS 7, you'll need a newer iPod.
    Regards.

  • Thread running in jvm or os

    pls tell me thread running in jvm or operating system

    pls tell me thread running in jvm or operating systemIIRC, unless you are using a very old JVM (e.g. pre 1.2) or are explicitly specifying green threads (which I believe was still possible even in 1.2?) then all threading using native threads. As mentioned above, the mapping between Java thread objects and the native threads is is highly dependent on the OS (especially when it comes to thread priority).
    This document goes into much more detail: http://java.sun.com/docs/hotspot/threads/threads.html
    - N

  • Output Problem with my problem help please

    Here is the Instruction to the problem:
    An interesting problem in number theory is sometimes called the ?necklace problem.? This problem begins with two single-digit numbers. The next number is obtained by adding the first two numbers together and saving only the ones-digit. This process is repeated until the ?necklace? closes by returning to the original two numbers. For example, if the starting numbers are 1 and 8, the output would look like:
    18976392134718
    and below is my program:
    public class Necklace
         public static void main(String[] args)
              int f, s, sum, n, p;
              String first = JOptionPane.showInputDialog ("Enter first number:");
              String second = JOptionPane.showInputDialog ("Enter second number:");
              f = Integer.parseInt (first);
              s = Integer.parseInt (second);
              sum = f + s;
              n = sum % 10;
              p = s;
              while (!(p == f && n ==s))
                   sum = n + p;
                   p = n;
                   n = sum % 10;
              String output = f +""+ s +""+ ++n+"";
              JOptionPane.showMessageDialog (null, output, "Necklace", JOptionPane.INFORMATION_MESSAGE);
    My problem is that I don't know or have any idea how to make the output so it will show all the numbers in between, my ouput it only show the first 3 number, 1 8 and 9

    My problem is that I don't know or have any idea how to make the output so it will show all the numbers in between, my ouput it only show the first 3 number, 1 8 and 9Hello and welcome to the forum. First and foremost, please use code tags when posting code here so that your code will retain its formatting and thus will be readable -- after all, your goal is to get as many people to read your post and understand your code as possible, right?
    To do this, highlight your pasted code (please be sure that it is already formatted when you paste it into the forum; the code tags don't magically format unformatted code) and then press the code button, and your code will have tags.
    Another way to do this is to manually place the tags into your code by placing the tag [code] above your pasted code and the tag [code] below your pasted code like so:
    [code]
      // your code goes here
      // notice how the top and bottom tags are different
    [/code]For instance, here is your code with tags:
    import javax.swing.JOptionPane;
    public class Necklace {
       public static void main(String[] args) {
          int f, s, sum, n, p;
          String first = JOptionPane.showInputDialog("Enter first number:");
          String second = JOptionPane.showInputDialog("Enter second number:");
          f = Integer.parseInt(first);
          s = Integer.parseInt(second);
          sum = f + s;
          n = sum % 10;
          p = s;
          while (!(p == f && n == s))
             sum = n + p;
             p = n;
             n = sum % 10;
          String output = f + "" + s + "" + ++n + "";
          JOptionPane.showMessageDialog(null, output, "Necklace",
                   JOptionPane.INFORMATION_MESSAGE);
    }Next, you can declare your output String before the while loop, and then concatonate a new int on to this inside the loop. Perhaps an even better way is to use a StringBuilder object.

  • IPhone 4 replacement today due to water damage not able to recover contacts etc won't let me make/receive call until I log into I turns?  Phone problem or sprint problem?

    Got a replacement iphone 4 today.  Could not recover contacts etc due to water damage.  New phone won't let us make or receive calls until we hook up to itunes.  Don't know what that means.  Any help would be appreciated.  Phone problem or Sprint problem?
    Thanks!

    If you have iTunes on your computer, plug the phone to the computer running iTunes. You will be guided by iTunes.
    Download iTunes here (if you do not have it):
    http://www.apple.com/itunes/

  • I have installed photoshop elements 12. when I try use the editing features it said that i must login to Adobe to register the product. but each time i try to it said there is a problem. help the problem stated that the internet is not connected, but that

    i have installed photoshop elements 12.
    when I try use the editing features it said that i must login to Adobe to register the product.
    but each time i try to it said there is a problem.
    help
    the problem stated that the internet is not connected, but that is not the case.

    I had the same issue and I'm running Windows 7.  Tried working with technical support for several hours but they were no help.  They just had me doing the same things over and over, offering no real answers.  I finally got fed up and have decided to return my product for a full refund.

  • My volume on the Iphone 3GS is very low is it an equipment problem, setting problem or update problem?

    My volume on the iPhone 3GS is very low. Is it an equipment problem, settings problem or update problem? And, is there a fix other than having Apple fix it?

    Have you had a look here to make sure it is set up how you want it...
    iPhone User Guide
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

Maybe you are looking for