Each process merely starts out as a single thread. If it creates other
threads, they are usually not considered main threads.
OP: But note that if a process is running under a debugger, or an IDE,
that debugger may inject one or more threads into the process.
The only place I now of where we care whether a particular thread in a
process is "the main thread" is with a gui, which usually can only sit
in a single, "main" thread. Any gui-related processing done in other
threads must be done very carefully.
--
DaveA