Can we close application when any foreground thread is running inside application process c#
Answers
Answered by
0
yes. whyn't.........
Answered by
0
There are two types of managed Threads that can be created by theSystem.Threading.Thread class:Foreground and Background Threads.
Foreground threads will keep the process running, however after all of the foreground threads have been terminated the system stops all of the background threads and stops the process. Threads created using System.Thread.Thread are foreground threads by default. You can make them background threads by using the IsBackground propety:
Foreground threads will keep the process running, however after all of the foreground threads have been terminated the system stops all of the background threads and stops the process. Threads created using System.Thread.Thread are foreground threads by default. You can make them background threads by using the IsBackground propety:
Similar questions