Thread Window
- Last UpdatedJul 18, 2023
- 2 minute read
The Threads History window displays the history for Cicode threads.

The Thread Window has the following fields:
-
Name: The name of the Cicode thread. This is the name of the function called to start the thread (from the TaskNew() function for example).
If you click on the Name of the Cicode thread, you will make the selected thread the current focus of the Debugger. The Debugger will change the display to show the source of the new thread.
Note: If the thread was not started from TaskNew(), the Name shown will be Command.
-
Hnd: The Cicode thread handle.
-
CPU: The amount of CPU the Cicode thread is currently using, as a percentage of the total CPU usage. Cicode is efficient and this value should be quite small (0-25%). If this value is large it can indicate a problem with the Note: you need to be in debug mode to view this window.
-
State: The state of the Cicode thread. The states are defined as follows:
-
Ready: The Cicode is ready to be run.
-
Sleep: Suspended using the Sleep() function.
-
Run: The thread is running.
-
-
CPU_Time: The total amount of CPU time that the Cicode thread has consumed. This tracks how much CPU time the thread has used over its lifetime.
Note: You need to be in debug mode to view this window.