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

Explain representational state transfer (rest) in detail?

0 Answers  


What are differences between entity framework and l2s? : Entity framework

0 Answers  


What is the use of dataadapter ?

5 Answers   Arvato,


What are scaffold templates in mvc?

0 Answers  


Hi my name is sahil. i did my bsc in 2008 n did marketing jobs thereafter. bt nw i wanna learn .net to enter IT field. Ive heard deccansoft,secbad is the best inst. for .net. bt do they provide placement?? as im not a fresher so will i be hired by any company..??

1 Answers  


what is use of entity container?

0 Answers   Microsoft,


I'm anfinal yr. engg. student with knowledge of .net. I want to refurnish my knowledge for interview purpose. Which institute is good....I am confused among Peers, Naresh it, Deccansoft...Plz help me to select the right institute.....

9 Answers  


Why is entity framework used?

0 Answers  


What is the necessity for singning an assembly with a strong name?

1 Answers   L&T,


Can you handle all button click events at once in a form? Give coding.

1 Answers   Kanbay,


What is RouteConfig.cs in ASP.Net MVC 4?

0 Answers  


What is viewbag title?

0 Answers  


Categories