Click here to Skip to main content
15,887,444 members
Home / Discussions / C#
   

C#

 
GeneralRe: Waiting for thread to exit? Pin
SledgeHammer019-Nov-14 7:57
SledgeHammer019-Nov-14 7:57 
GeneralRe: Waiting for thread to exit? Pin
SledgeHammer019-Nov-14 8:00
SledgeHammer019-Nov-14 8:00 
GeneralRe: Waiting for thread to exit? Pin
PIEBALDconsult9-Nov-14 8:13
mvePIEBALDconsult9-Nov-14 8:13 
GeneralRe: Waiting for thread to exit? Pin
SledgeHammer019-Nov-14 8:49
SledgeHammer019-Nov-14 8:49 
GeneralRe: Waiting for thread to exit? Pin
PIEBALDconsult9-Nov-14 8:55
mvePIEBALDconsult9-Nov-14 8:55 
GeneralRe: Waiting for thread to exit? Pin
SledgeHammer019-Nov-14 9:17
SledgeHammer019-Nov-14 9:17 
GeneralRe: Waiting for thread to exit? Pin
Eddy Vluggen10-Nov-14 8:34
professionalEddy Vluggen10-Nov-14 8:34 
GeneralRe: Waiting for thread to exit? Pin
SledgeHammer0110-Nov-14 9:27
SledgeHammer0110-Nov-14 9:27 
It says it right in the documentation you linked:

Quote:
Background threads are identical to foreground threads, except that background threads do not prevent a process from terminating


In plain English, background threads do NOT block the process from terminating while foreground threads DO.

Quote:
Once all foreground threads belonging to a process have terminated, the common language runtime ends the process. Any remaining background threads are stopped and do not complete.


Says right here that as soon as all foreground threads are finished, the process exits. Background threads are terminated on the spot.

I don't know if you read every post in this thread, but there was one where I posted additional proof of it being broken and that the task is staying around as it should:

http://www.codeproject.com/Messages/4940135/Re-Waiting-for-thread-to-exit.aspx[^]
GeneralRe: Waiting for thread to exit? Pin
Eddy Vluggen11-Nov-14 0:31
professionalEddy Vluggen11-Nov-14 0:31 
AnswerRe: Waiting for thread to exit? Pin
Garth J Lancaster8-Nov-14 17:31
professionalGarth J Lancaster8-Nov-14 17:31 
QuestionAny library to decompress XZ files? Pin
DonRolando8-Nov-14 9:56
DonRolando8-Nov-14 9:56 
AnswerRe: Any library to decompress XZ files? Pin
Garth J Lancaster8-Nov-14 12:11
professionalGarth J Lancaster8-Nov-14 12:11 
QuestionSystem.Web.HttpContext cannot be serialized because it does not have a parameterless constructor. Pin
ASPnoob8-Nov-14 4:33
ASPnoob8-Nov-14 4:33 
AnswerRe: System.Web.HttpContext cannot be serialized because it does not have a parameterless constructor. Pin
Kornfeld Eliyahu Peter8-Nov-14 9:19
professionalKornfeld Eliyahu Peter8-Nov-14 9:19 
QuestionBlocking Collection Issue Pin
SledgeHammer017-Nov-14 8:24
SledgeHammer017-Nov-14 8:24 
AnswerRe: Blocking Collection Issue Pin
Eddy Vluggen7-Nov-14 9:40
professionalEddy Vluggen7-Nov-14 9:40 
AnswerRe: Blocking Collection Issue Pin
jschell7-Nov-14 12:39
jschell7-Nov-14 12:39 
GeneralRe: Blocking Collection Issue Pin
SledgeHammer017-Nov-14 13:07
SledgeHammer017-Nov-14 13:07 
QuestionHow to calculate matrix determinant? n*n Pin
cicill7-Nov-14 6:18
cicill7-Nov-14 6:18 
AnswerRe: How to calculate matrix determinant? n*n Pin
OriginalGriff7-Nov-14 6:29
mveOriginalGriff7-Nov-14 6:29 
QuestionRe: How to calculate matrix determinant? n*n Pin
ZurdoDev7-Nov-14 10:11
professionalZurdoDev7-Nov-14 10:11 
Question[Howto] C# and DVR media port programming Pin
Benjie Fallar III7-Nov-14 5:26
Benjie Fallar III7-Nov-14 5:26 
GeneralRe: [Howto] C# and DVR media port programming Pin
Eddy Vluggen7-Nov-14 5:42
professionalEddy Vluggen7-Nov-14 5:42 
JokeRe: [Howto] C# and DVR media port programming Pin
PIEBALDconsult7-Nov-14 5:54
mvePIEBALDconsult7-Nov-14 5:54 
GeneralRe: [Howto] C# and DVR media port programming Pin
Benjie Fallar III7-Nov-14 6:00
Benjie Fallar III7-Nov-14 6:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.