What is Primary Thread? C/C++on Windows

"Each process is started with a single thread, often called the primary thread, but can create additional threads from any of its threads."

Is primary thread here refers to the application itself without having it run anything?
For example, a program executes which creates a process (application itself), Is it a the same time called primary thread?

Or primary thread is the first activity that happens on the process?

I hope my question is clear
LVL 1
F-J-KAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wwnosalCommented:
How I understand this is the following:
1. If your application is single threaded its only thread is primary thread.
2. If your application is multithreading then the first thread that had started (application itself normally ) is a primary thread no matter how many "child" threads are started.
That is how I understood it..
0
F-J-KAuthor Commented:
I do not get this: If your application is multithreading then the first thread that had started (application itself normally ) is a primary thread no matter how many "child" threads are started.

>> (application itself normally ) is a primary thread no matter how many "child" threads are started.

I do not get this part. Can you re-explain please?

Thanks
0
wwnosalCommented:
The point is that threads are not started by itself.. Only the application (precisely speaking a piece of software containing main function) can be started by the OS. Other threads usually are started by the parent thread (primary thread)  as a dependent processes.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
F-J-KAuthor Commented:
No don't delete it anymore....Thanks
0
F-J-KAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.