Examine threads.
Sébastien Granjoux
seb.sfo@free.fr
Philip Chimento
philip.chimento@gmail.com

# Threads

# List threads

A program can be composed of several threads. All these threads are executed independently, having their own registers, stack and local variables, but sharing global variables.

From the main menu, select View Thread to open the Thread window.

The window shows the following information about each thread:

## Active

This contains a yellow arrow that points to the active thread.

## ID

This is a number corresponding to each thread.

## File

The name of the file containing the function corresponding to the current frame of the current thread.

## Line

The line number of the function corresponding to the current frame of the current thread.

## Function

The name of the function corresponding to the frame of the current thread.

## แอดเดรส

The address of the function corresponding to the frame of the current thread.

# Change current thread

The current thread is the thread whose stack and local variables are currently displayed in the debugger.

In the Thread window, select the thread you want.

Right-click and select Set current thread.

# View current function

In the Thread window, select the thread you want.

Double-click, or right-click and select View Source.