How do I count programatically the number of threads?

From: nanolucifer (niranjan.tulpule_at_gmail.com)
Date: 12/27/04

  • Next message: Basile Starynkevitch [news]: "Re: How do I count programatically the number of threads?"
    Date: 27 Dec 2004 09:12:23 -0800
    
    

    Hi,

    I have a process (Linux) which loads some libraries like 'xerces',
    'ACE' etc which in turn spawn their own threads. I am writing a
    monitoring tool which needs to display the number of threads that the
    process has spawned. How do I do it programatically? Are there any API
    available? I checked the pthread library, but could not find a useful
    method in there. Can anyone please help me out?

    Thanks,

    NT


  • Next message: Basile Starynkevitch [news]: "Re: How do I count programatically the number of threads?"

    Relevant Pages

    • Re: How do I count programatically the number of threads?
      ... > 'ACE' etc which in turn spawn their own threads. ... I am writing a ... > monitoring tool which needs to display the number of threads that the ...
      (comp.os.linux.development.apps)
    • Re: How do I count programatically the number of threads?
      ... > 'ACE' etc which in turn spawn their own threads. ... I am writing a ... > monitoring tool which needs to display the number of threads that the ...
      (comp.os.linux.development.apps)
    • Re: build faster
      ... Which is faster right now, locating testing and learning the library, writing your own, or just coding from scratch. ... In addition to writing reuseable code you should be writing expandable code that is backward compatible. ... Now I see a lot of work other programmers have done where there is no OO, there often are no functions, this is all embedded calls and includes in html. ... A competent programmer seldom starts from scratch and has libraries of code which can be used on almost any project ...
      (comp.lang.php)
    • Re: use of backward single quote in procedure names, was: DST (summer time) offset
      ... I admit to writing certain classes of thing in BASIC and other classes ... that gets you beyond the standard C libraries. ... RISC OS language discussion) and I'll bother to answer. ... has no pre-run-time syntax checking ...
      (comp.sys.acorn.programmer)
    • Re: ML vs. Lisp
      ... would be better off writing *ML, or are you being ironic again? ... Look at LAPACK, FFTW, GLU and GTK from OCaml for example. ... I don't use many C libraries and the ones ... Use a common language run time like .NET. ...
      (comp.lang.functional)