Computer Science, asked by maitreyasingh1089, 1 year ago

Can we close application when any foreground thread is running inside application process c#

Answers

Answered by deepika1799
0
yes. whyn't.........
Answered by Vaibhav0070
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:

Similar questions