timer freezes system

Discussion in 'Python' started by Riad Djemili, Oct 8, 2003.

  1. Riad Djemili

    Riad Djemili Guest

    Hi there,

    when executing the standard python example for Timer my python shell
    freezes after giving out 'hello' and has to be killed.

    What am I doing wrong!?

    --code--

    import threading

    def hello():
    print "hello, world"

    t = threading.Timer(30.0, hello)
    t.start() # after 30 seconds, "hello, world" will be printed

    --code--


    I'm on a WinXP System

    Regards,
    Riad
     
    Riad Djemili, Oct 8, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kelsang Wangchuk

    System.Timers.Timer vs. System.Threading.Timer

    Kelsang Wangchuk, Jul 31, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    756
    Kelsang Wangchuk
    Jul 31, 2003
  2. Replies:
    1
    Views:
    1,675
    Steve C. Orr [MVP, MCSD]
    Feb 22, 2005
  3. Simon

    page timer, or redirect timer

    Simon, Nov 4, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    11,261
    Bruce Barker
    Nov 4, 2005
  4. Replies:
    0
    Views:
    324
  5. Replies:
    8
    Views:
    631
    Jorgen Grahn
    Jul 15, 2013
Loading...

Share This Page