Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am working on a run time threading library in which I want to interact with the kernel to find out global system utilization (especially in SMPs). My question ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    1

    runqueue and waitqueue length


    Hi,
    I am working on a run time threading library in which I want to interact with the kernel to find out global system utilization (especially in SMPs).
    My question is: Is there a way to find out from an application that how many active threads are there in OS? By active, I mean ready to run AND already running (both separately reported or may be one number). Similarly a number for how many threads are there in wait queues (blocked on I/O or waiting for an event or a signal). A program might have multiple threads. This information is useful for runtime library developers, because they can tune their threads and other scheduling accordingly.
    Thanks for your time,
    -Khubaib

  2. #2
    Just Joined! backlog's Avatar
    Join Date
    Jul 2007
    Posts
    3
    atop tool provides information about how processes are currently affecting local CPUs, this is, user time, idle time and interrupt attention. With vmstat you can retrieve IO information.
    Check man vmstat

Posting Permissions

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