Results 1 to 2 of 2

Thread: Java: Threads problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2004
    Posts
    11

    Java: Threads problem

    Hey there,

    I have created a class which once a user has logged on, executes a thread. This thread however seems to stop the execution of the rest of the program. It uses an infinite loop to print a message (But it will be changed), but nothing happens after that. Could anyone suggest a reason for this, lee.
    Win if you can, Lose if you have to. BUT ALWAYS CHEAT.

  2. #2
    Addicted Member MethadoneBoy's Avatar
    Join Date
    Oct 2001
    Location
    Preferably somewhere between Keira Knightley and Diane Kruger but I'm not fussy
    Posts
    180
    If you're using the Thread.sleep ( 1000 ) method then this will halt the progress of the entire program, not just the Thread.

    Otherwise it might be something you're doing in the loop...
    "'Oh, hello Mr. Crick! What do you think of Jeffrey Archer?' Clip-clip-clip! Oh, come on! Who are you kidding? You wait til I'm mayor, you'll see how tough I am! Christ almighty...."

Posting Permissions

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



Click Here to Expand Forum to Full Width