Compartir a través de


Threads Window (Compact 2013)

3/26/2014

The Threads window shows the threads, or paths of execution, within the process selected from the Process drop-down list at the top of the window. To display the window, go to Debug > Windows > Threads.

  • View the thread handle and the handle of the process that created the thread
  • View thread states
  • Display thread priority
  • Display elapsed time used by the thread

When the Debugger Is Running

The following types of information are displayed in the Threads window when the debugger is running.

Item

Description

hThread

Handle value associated with the thread.

Thread State

The states are shown in the following table.

Run State ValueDescription
DyingThread has been terminated in-flight during a system call, will exit upon return of system call.
DeadThread has been terminated, cleanup work is pending.
BuriedThread has been terminated, cleanup work is pending.
SlpgThread is sleeping.
AwakThread is not sleeping or blocked.
RungThread is currently running.
RunabThread is in runnable state (thread is in run queue and can be scheduled to run when it comes to the front of the queue).
RunBlkdThread is blocked.
RunNeedsThread is out of block queue, but not yet put in run queue.

AccessKey

The access key for the current thread.

hCurProc

The handle of the process that created the thread.

CurPrio

Current (possibly inversion adjusted) thread priority.

BasePrio

Base (unadjusted) thread priority.

KernelTime

The amount of CPU time spent by the thread in kernel mode.

KernelTime starts from the beginning of the creation of the thread until the current snapshot is taken.

UserTime

The amount of CPU time the thread used in user mode.

UserTime starts from the beginning of the creation of the thread until the current snapshot is taken.

Context (Shortcut) Menu Options

The following table shows the options in the Context (Shortcut) menu:

Item

Description

Copy

Copies the selected text.

Refresh

Deletes all entries in the window, allowing only current entries to appear.

Log

Formats and moves all data in this window to the Log tab of the Output window.

Expand All

Displays the callstack information for each thread.

Collapse All

Hides the callstack information for each thread.

Open in Call Stack Window

Opens the Call Stack Window for the selected process and thread.

See Also

Reference

Call Stack Window

Concepts

Platform Builder User Interface

Other Resources

Platform Builder Windows