Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 208749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:51:13+00:00 2026-05-11T17:51:13+00:00

Are these actually three different concepts or am I getting jumbled? (I’ve been reading

  • 0

Are these actually three different concepts or am I getting jumbled? (I’ve been reading articles about threading and garbage collection together and have confused myself.)

“Critical section” – I think this may just be the term for sections of code that you don’t want multiple threads accessing at the same time i.e. inside lock and Monitor.Enter/Exit statements?

“Critical region” – No real clue here – MSDN says something along the lines of “This tells a host that exceptions thrown within the section might have wider effect”. And that “hosts of the CLR e.g. Sql Server” may choose to handle exceptions thrown within critical regions “differently”. Differently how? And why? And, most importantly, in what real world scenarios might I need to mark code as a critical region?

“Constrained Execution Region” – I came across this when reading about the CriticalFinalizerObject in a garbage collection article.

All I can understand from MSDN on this one is that code within one of these regions is somehow guaranteed to run (but how?) and must therefore not throw “out-of-band” exceptions.

What is an out-of-band exception? (I did google this but it just asked me if I meant “out of bounds exception”).

Is it any unhandled exception? Or only certain types of exception? And again, most importantly, in what real world scenarios might I need a “constrained execution region”?

As I don’t understand the concepts at all well, I’m not sure what tags this question needs other than “.NET”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:51:13+00:00Added an answer on May 11, 2026 at 5:51 pm

    Just my understanding of these concepts:

    Critical section – as you said.

    Critical region – This seems the big-picture version of “don’t let exceptions escape from a thread”.

    Constrained Execution Region – This is a way to make a piece of code more or less atomic by guarding against interruption by exceptions. The example on this page uses it to make sure that the allocation and storing of a handle are both executed. Note that there is no roll-back, it’s more of a preventive system.

    There are guidelines for “normal programming” that look a little like this, ie when overriding Equals or an implicit operator you should not throw (anything).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 236k
  • Answers 236k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can use date('Y-n-j', strtotime('yesterday')); May 13, 2026 at 6:26 am
  • Editorial Team
    Editorial Team added an answer I think you have some general scalability issues with your… May 13, 2026 at 6:26 am
  • Editorial Team
    Editorial Team added an answer IE8 has one top-level process, which contains the main window… May 13, 2026 at 6:26 am

Related Questions

Are these actually three different concepts or am I getting jumbled? (I've been reading
Clojure has introduced me to the concept of Lisp syntax, and I'm interested, but
NOTE I have asked the related question: How to combine DataTrigger and EventTrigger? I
We generate graphs for huge datasets. We are talking 4096 samples per second, and
Say I want to have a method that takes any kind of number, is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.