Results 1 to 5 of 5
  1. #1
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    444
    Rep Power
    6

    Default Problem in Thread execution.

    Hi,

    I have one thread program that has infinite loop. It does mean that It will never be finished, unless and until JVM shuts down. Some times it works pretty well. But most of times it stopped automatically. What might be the problem for this issue? Is there JVM configuration I might have missed?
    Mak
    (Living @ Virtual World)

  2. #2
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default

    A thread in an infinite loop will not end unless an exception propagates out of its run() method, or it's a daemon thread and no more non-daemon threads are running, or something else kills the JVM.
    Get in the habit of using standard Java naming conventions!

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Automatically stopped sense, your JVM is not running at all, or the application not responding.

  4. #4
    amanrv is offline Member
    Join Date
    Jul 2011
    Posts
    12
    Rep Power
    0

    Default

    post your code, we'll see

  5. #5
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    444
    Rep Power
    6

    Default

    @Eranga The application is not responding...
    Mak
    (Living @ Virtual World)

Similar Threads

  1. thread execution one after another
    By turanan in forum New To Java
    Replies: 16
    Last Post: 05-08-2012, 12:11 PM
  2. Concurrency in thread creation and execution
    By krishanu in forum New To Java
    Replies: 6
    Last Post: 06-11-2011, 07:04 AM
  3. make thread to pause execution
    By Saran185 in forum Threads and Synchronization
    Replies: 1
    Last Post: 03-16-2011, 05:01 AM
  4. Thread Execution
    By sunilragidi in forum Threads and Synchronization
    Replies: 2
    Last Post: 12-07-2010, 03:38 PM
  5. Replies: 10
    Last Post: 11-29-2010, 02:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •