1 <h2>thread_basic_info
</h2>
4 <strong>Structure
</strong> - Defines basic information for a thread.
7 <strong>struct thread_basic_info
</strong>
9 <strong>time_value_t
</strong> <var>user_time
</var><strong>;
</strong>
10 <strong>time_value_t
</strong> <var>system_time
</var><strong>;
</strong>
11 <strong>integer_t
</strong> <var>cpu_usage
</var><strong>;
</strong>
12 <strong>policy_t
</strong> <var>policy
</var><strong>;
</strong>
13 <strong>integer_t
</strong> <var>run_state
</var><strong>;
</strong>
14 <strong>integer_t
</strong> <var>flags
</var><strong>;
</strong>
15 <strong>integer_t
</strong> <var>suspend_count
</var><strong>;
</strong>
16 <strong>integer_t
</strong> <var>sleep_time
</var><strong>;
</strong>
19 <strong>typedef struct thread_basic_info* thread_basic_info_t;
</strong>
23 <dt> <var>user_time
</var>
25 The total user run time for the thread.
27 <dt> <var>system_time
</var>
29 The total system run time for the thread.
31 <dt> <var>cpu_usage
</var>
33 Scaled
<strong>CPU
</strong> usage percentage for the thread.
35 <dt> <var>policy
</var>
37 Scheduling policy in effect
39 <dt> <var>run_state
</var>
41 The thread's run state. Possible values are:
44 <dt> <strong>TH_STATE_RUNNING
</strong>
46 The thread is running normally.
48 <dt> <strong>TH_STATE_STOPPED
</strong>
50 The thread is stopped.
52 <dt> <strong>TH_STATE_WAITING
</strong>
54 The thread is waiting normally.
56 <dt> <strong>TH_STATE_UNINTERRUPTIBLE
</strong>
58 The thread is in an un-interruptible wait state.
60 <dt> <strong>TH_STATE_HALTED
</strong>
62 The thread is halted at a clean point.
67 Swap/idle flags for the thread. Possible values are:
70 <dt> <strong>TH_FLAGS_SWAPPED
</strong>
72 The thread is swapped out.
74 <dt> <strong>TH_FLAGS_IDLE
</strong>
76 The thread is an idle thread.
79 <dt> <var>suspend_count
</var>
81 The current suspend count for the thread.
83 <dt> <var>sleep_time
</var>
85 The number of seconds that the thread has been sleeping.
89 The
<strong>thread_basic_info
</strong> structure defines the basic information
91 The
<strong>thread_info
</strong> function returns this array for a specified thread.
92 <h3>RELATED INFORMATION
</h3>
95 <a href=
"thread_info.html"><strong>thread_info
</strong></a>.
98 <a href=
"policy_fifo_info.html"><strong>policy_fifo_info
</strong></a>,
99 <a href=
"policy_rr_info.html"><strong>policy_rr_info
</strong></a>,
100 <a href=
"policy_timeshare_info.html"><strong>policy_timeshare_info
</strong></a>.