Sunday, September 7, 2014

In C# background threads do not keep an application alive.

They only live as long as a foreground thread is running and once all foreground threads are done running in an application, the application itself will stop running dropping any stray background threads. This is a danger in using background threads.

The .IsBackground property hanging off of the Thread type may be set to true or false to manage this trickiness.

No comments:

Post a Comment