By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,419 Members | 978 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,419 IT Pros & Developers. It's quick & easy.

Difference between background thread and foreground thread

P: n/a
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?

--
Ioannis Vranos
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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...readlevels.asp

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.