Visual Studio not showing main thread ID

Hi.

I made a program where I run a thread t1 and then I print both the ID for the main_thread and the ID of the thread t1.

Here is the result (screenshot): http://i.imgur.com/dBZt7xT.jpg

As you can see

the main_thread has ID 5316 which in Hexadecimal is -> 14C4
the thread t1 has ID 6864 which in Hexadecimal is -> 14D0

When I terminate the program, Visual Studio tells me this:

1
2
3
4
5
6
The thread 0x1ad0 has exited with code 0 (0x0).
The thread 0x26c0 has exited with code 0 (0x0).
The thread 0x1b94 has exited with code 0 (0x0).
The thread 0x2c34 has exited with code 0 (0x0).

The program '[8140] MyProject.exe' has exited with code 0 (0x0).


In the first line it says that the thread with ID 0x14D0 (which is the hexadecimal ID of the thread t1) has exited with code 0.

The questions are:

why the main thread is not listed there?
why there are 3 other threads listed there?
Topic archived. No new replies allowed.