tag:blogger.com,1999:blog-38916088.post392212032080397831..comments2015-06-18T10:00:04.063-04:00Comments on Crossed Logic: Bringing The Background To The ForegroundUnknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-38916088.post-80614900018447696432007-09-06T21:41:00.000-04:002007-09-06T21:41:00.000-04:00Using Thread.BeginCriticalRegion you can signal th...Using Thread.BeginCriticalRegion you can signal that a portion of code is about to execute that if aborted unexpectedly or has an unhandled exception will negatively impact the application as a whole. Additionally, the Thread.BeginThreadAffinity can called to indicate that code is about to execute depending on the identity of the current thread.<BR/><BR/>Both of these methods have complementary Thread.EndXXX routines that indicate end of block of code that fit each case.<BR/><BR/>Depending on application need, these methods may be helpful in controlling which threads or more granularly blocks of code need to be gracefully shutdown on application termination.kccjr2https://www.blogger.com/profile/07666828183385874660noreply@blogger.com