This print for content only-size & color not accurate 7" X 9-1/4" / casebound / malloy



Download 21,46 Mb.
Pdf ko'rish
bet1108/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   1104   1105   1106   1107   1108   1109   1110   1111   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition



Source Code

The AppDomainManipulator project is included under the Chapter 17 subdirectory.



Understanding Object Context Boundaries

As you have just seen, AppDomains are logical partitions within a process used to host .NET assem-

blies. On a related note, a given application domain may be further subdivided into numerous

context boundaries. In a nutshell, a .NET context provides a way for a single AppDomain to estab-

lish a “specific home” for a given object.

Using context, the CLR is able to ensure that objects that have special runtime requirements

are handled in an appropriate and consistent manner by intercepting method invocations into and

out of a given context. This layer of interception allows the CLR to adjust the current method invo-

cation to conform to the contextual settings of a given object. For example, if you define a C# class

type that requires automatic thread safety (using the [Synchronization] attribute), the CLR will

create a “synchronized context” during allocation.

Just as a process defines a default AppDomain, every application domain has a default context.

This default context (sometimes referred to as context 0, given that it is always the first context cre-

ated within an application domain) is used to group together .NET objects that have no specific or

unique contextual needs. As you may expect, a vast majority of .NET objects are loaded into context

0. If the CLR determines a newly created object has special needs, a new context boundary is cre-

ated within the hosting application domain. Figure 17-9 illustrates the process/AppDomain/

context relationship.

C H A P T E R   1 7  


Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   1104   1105   1106   1107   1108   1109   1110   1111   ...   1830




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish