Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


If background completes its processing will it wait for
foreground threads?

Answers were Sorted based on User's Feedback



If background completes its processing will it wait for foreground threads?..

Answer / prabhu

A managed thread is either a background thread or a
foreground thread. Background threads are identical to
foreground threads with one exception: a background thread
does not keep the managed execution environment running.
Once all foreground threads have been stopped in a managed
process (where the .exe file is a managed assembly), the
system stops all background threads and shuts down

Is This Answer Correct ?    3 Yes 0 No

If background completes its processing will it wait for foreground threads?..

Answer / ramsubbu

In .net Threading concept both the background thread and
the foreground thread means the same with minor difference
between the two, in a foreground thread you can control and
make sure that the thread has completed its execution,
whereas we can not control the execution of background
thread, Background threads do not prevent the process from
being terminated.

In general when all the foreground threads are stopped the
CLR stops the process by terminating the background threads.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

What is serialization in .NET? What are the ways to control serialization?

2 Answers  


How .net assemblies are registred as private and shared assembly ?

2 Answers   Infosys, MMTS,


sql related question (outer join, left, right etc) array vs hashtable CRL sqldatareader vs dataset what is WPF, WCF, compare to WinForms Webservices Asp.net MVC vs WebForms?

0 Answers   Avanade,


Which filter executes first in an asp.net mvc application?

0 Answers  


Mention two instances where routing is not implemented or required?

0 Answers   Infosys,


can we call the garbage collector to run explicicitly?

6 Answers   Kanbay, Volvo,


What is Area in ASP.Net MVC?

0 Answers  


What is MVVM design pattern?

0 Answers  


how to maintain the session state? what is Abstract class and interface and inheritence with example?

2 Answers  


How we can add the css in mvc?

0 Answers  


What’s the advantage of using System.Text.StringBuilder over System.String?

4 Answers   IBM,


If you are using components in your application, how can you handle exceptions raised in a component ?

4 Answers   Accenture, BirlaSoft,


Categories