Results 1 to 8 of 8

Thread: Threads

  1. #1
    nsr2008.mca is offline Member
    Join Date
    Oct 2010
    Posts
    4
    Rep Power
    0

    Default Threads

    Pls any one tell how to display the message as like "hello thread" in every one minute using....

    Thanks&Regards
    Satya

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    Quote Originally Posted by nsr2008.mca View Post
    Pls any one tell how to display the message as like "hello thread" in every one minute

    Read the Concurrency section of Oracle's Tutorial and see if you can come up with some code to do that. The early sections in particular give the information you are seeking. If you have some question about that code - if it doesn't compile, or doesn't behave at runtime as you expect it should - then you will have questions to ask.

  3. #3
    nsr2008.mca is offline Member
    Join Date
    Oct 2010
    Posts
    4
    Rep Power
    0

    Default

    Thank you for suggestion

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    You're welcome.

    I've just seen your other thread and I'm led to wonder whether you think that you can post a request for code here and people will respond with code. Basically, it just doesn't happen that way. I don't say this to be unkind but because I genuinely think you'll get the best help, the most quickly, if you attempt to write the code yourself and then ask questions about that.

    -----

    I should have added to my previous reply that even the Tutorial can be difficult at first. (Well, things like threads are difficult for *me* at any rate). So specific questions about what you read there will also tend to get helpful replies.

  5. #5
    nsr2008.mca is offline Member
    Join Date
    Oct 2010
    Posts
    4
    Rep Power
    0

    Default

    pls can you provide the code for that.

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default

    Now that's comedy!

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

  8. #8
    suresh.sa is offline Member
    Join Date
    Oct 2010
    Posts
    14
    Rep Power
    0

    Thumbs up

    U can try it in the Thread concepts and use the sleep() method to print for every one min.

    Thanks&Regards
    Suresh.S.A.

Similar Threads

  1. Threads
    By GoLuM83 in forum Advanced Java
    Replies: 7
    Last Post: 03-31-2010, 09:52 PM
  2. When to use threads
    By simorgh in forum Threads and Synchronization
    Replies: 2
    Last Post: 02-12-2010, 08:43 AM
  3. GUI and Threads
    By rp181 in forum Threads and Synchronization
    Replies: 1
    Last Post: 10-10-2009, 09:39 PM
  4. Using threads
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-11-2007, 11:25 AM
  5. Threads
    By one198 in forum Threads and Synchronization
    Replies: 1
    Last Post: 11-20-2007, 07:15 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
  •