×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2006
    Location
    shen zhen
    Posts
    3

    Hello guys!How can I code a system clock program!

    I am a newer here and I want to code a system clock program but I don`t understand how to use the RUNNABLE and thread who can give me an example about how to use a subthead??thanks a lot!

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280

    Re: Hello guys!How can I code a system clock program!

    Code:
    class Something implements Runnable {
      public void run() {
        // whatever the thread is supposed to do
      }
    }
    
    // ... somewhere else, we start a thread from the former Runnable:
    Thread t = new Thread(new Something()); // if you already have an instance of Something 
                                            // handy you don't need to create a new one here
    t.start(); // and... we're off!
    shmoove

  3. #3
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: Hello guys!How can I code a system clock program!


Similar Threads

  1. File access frequently by two program
    By kth0506 in forum Symbian
    Replies: 8
    Last Post: 2006-03-31, 14:38
  2. Replies: 1
    Last Post: 2005-05-24, 02:26
  3. program failure in 6600
    By wing0custom in forum Mobile Java General
    Replies: 3
    Last Post: 2004-02-21, 19:08
  4. Help! Basic TCP connection - Source code attached
    By dineshguru in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2002-10-10, 05:01
  5. problem with Nokia Toolkit 3.1 and binary code for MMS
    By alinesimon in forum General Messaging
    Replies: 1
    Last Post: 2002-08-09, 06:40

Posting Permissions

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