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 mvc entity framework?

0 Answers  


What is filters in web api?

0 Answers  


In razor syntax, what is the escape sequence character for @ symbol?

0 Answers  


Is it possible to unit test an mvc application without running the controllers in an asp.net process?

0 Answers  


What are the types of assemblies and where can u store them and how ?

11 Answers   Accenture, BirlaSoft, IBM,






How to change the action name in ASP.Net MVC?

0 Answers  


What is the use of JIT

1 Answers  


Requirement is: try { \\SQL Query } catch(Exception i) { print a } catch(SQLQueryException e) { \\SQL Query } Qu)I Got Exception in "try" block. Which "catch" statement (i.e. 1st catch or 2nd catch ) catches the exception and Why???

6 Answers   3i Infotech,


What is NonActionAttribute ?

0 Answers   Cognizant,


Explain RenderBody and RenderPage in ASP.Net MVC?

0 Answers  


How can I tell what .net framework is installed?

0 Answers  


how to disable the lazy loading framework?

0 Answers   Microsoft,


Categories