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

Difference between ASP.NET MVC and ASP.NET WebForms?

0 Answers  


Explain what is routing?

0 Answers  


How does servicing work for the .net framework 3.0?

0 Answers  


Which is the institute which also caters to your personal development other than subject.

1 Answers   TCS,


What is Separation of Concerns in ASP.NET ASP.Net MVC?

0 Answers  






What is rxjava used for?

0 Answers  


If we want to construct our own Garbage collector what are the steps things we have to do?

3 Answers   Honeywell, Semantic Space,


If we not suppress finalize method in dispose what will happen?

2 Answers   Kanbay,


What are Resource Files ? How are they used in .NET

1 Answers  


How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?

0 Answers  


What are the components required to create a route in ASP.Net MVC?

0 Answers  


How to enable Attribute Routing?

0 Answers  


Categories