Reputation: 81
when i create a thread to do some functions the state of it will first be "running" but after that it will change into "waitsleepjoin"or"stopped" state so :
Upvotes: 1
Views: 628
Reputation: 887877
By calling Sleep()
or Join()
, or when waiting for a lock.
After it finishes all of its code (after the original method returns)
Upvotes: 2