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

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

1 Answers   Kanbay,


What are the properties of Thread class?

1 Answers  


Mention the core components of .net framework?

0 Answers  


i have done enough testing in life but now stated developing intereset in development work,Can i think of entering into development work that too in >Net after more then 4 years of testing experiece?

0 Answers  


How is method overriding different from method overloading

1 Answers   Siebel Systems,






What type of filter does outputcacheattribute class represents?

0 Answers  


Please explain me what the project manager will ask in the interview.The interview is for senior position in .Net (5 years experience )

0 Answers   NNN,


Can you draw and explain the .NET Farmework?

2 Answers   Bosch,


How can I return string result from action in asp.net mvc?

0 Answers  


I have a GridView on web form, and a column in a grid is a linkbutton to open popup..., my problem is when i click on link button in a gridview popup opens as well works fine. but when i click on link button once again my popup window doesnt open. Can any one help please...

2 Answers  


What is the use of the default route {resource}.axd/{*pathinfo} ?

0 Answers  


Can I use razor code in javascript in asp.net mvc?

0 Answers  


Categories