Debugging thread stall

Discussion in 'Python' started by Roy Smith, Nov 27, 2009.

  1. Roy Smith

    Roy Smith Guest

    I've got an application which uses several threads (from the threading
    module) to do I/O. Inexplicably, I've now got a situation where one thread
    stalls.

    Are there any good tools for debugging Python threading problems? I'm
    thinking of something which might print out a list of all the threads, what
    they're waiting on, and what locks they hold.
     
    Roy Smith, Nov 27, 2009
    #1
    1. Advertising

  2. Roy Smith

    silvercl Guest

    On Nov 27, 3:22 pm, Roy Smith <> wrote:
    > I've got an application which uses several threads (from the threading
    > module) to do I/O.  Inexplicably, I've now got a situation where one thread
    > stalls.
    >
    > Are there any good tools for debugging Python threading problems?  I'm
    > thinking of something which might print out a list of all the threads, what
    > they're waiting on, and what locks they hold.


    You might be aware of pdb (python debugger)
    Here's one tutorial (Appendix A) which might be helpful...
    http://heather.cs.ucdavis.edu/~matloff/Python/PyThreads.pdf


    Cheers,
    Silver.
     
    silvercl, Nov 27, 2009
    #2
    1. Advertising

  3. On Nov 27, 3:22 pm, Roy Smith <> wrote:
    > I've got an application which uses several threads (from the threading
    > module) to do I/O.  Inexplicably, I've now got a situation where one thread
    > stalls.
    >
    > Are there any good tools for debugging Python threading problems?  I'm
    > thinking of something which might print out a list of all the threads, what
    > they're waiting on, and what locks they hold.



    You might be aware of pdb (python debugger)
    Here's one tutorial (Appendix A) which might be helpful...
    http://heather.cs.ucdavis.edu/~matloff/Python/PyThreads.pdf

    Cheers,
    Silver.
     
    Chandrakant Silver, Nov 27, 2009
    #3
    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. George Addison

    Unbelievable site stall...

    George Addison, Nov 19, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    376
    Munsifali Rashid
    Nov 20, 2003
  2. Johann Blake
    Replies:
    1
    Views:
    1,215
    Hermit Dave
    Jan 5, 2004
  3. Davy
    Replies:
    4
    Views:
    1,100
    Yao Qi
    Jan 11, 2007
  4. jacob navia

    Debugging C vs debugging C++

    jacob navia, Oct 26, 2006, in forum: C Programming
    Replies:
    11
    Views:
    602
    Ian Collins
    Oct 27, 2006
  5. Sharon11

    Stall image loading

    Sharon11, Jun 30, 2007, in forum: HTML
    Replies:
    2
    Views:
    391
    dorayme
    Jun 30, 2007
Loading...

Share This Page