Difference between background thread and foreground thread

  • Thread starter Thread starter Ioannis Vranos
  • Start date Start date
I

Ioannis Vranos

In .NET, what happens when a background thread and a foreground thread
have the same priority (e.g. Normal). Do they share the same processor time?
 
Hi Ioannis Vranos,
In .NET, what happens when a background thread and a foreground thread
have the same priority (e.g. Normal). Do they share the same processor
time?

Yes.
The difference between background and foreground thread is only the fact
that if the app terminates, any background thread will also be terminated.
Foreground threads must terminate itself before the app can terminate.


See: Foreground and Background Threads
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconthreadlevels.asp

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Back
Top