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



Download 21,46 Mb.
Pdf ko'rish
bet514/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   510   511   512   513   514   515   516   517   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

System.GC Member

Meaning in Life

AddMemoryPressure()

Allow you to specify a numerical value that represents the 

RemoveMemoryPressure()

calling object’s “urgency level” regarding the garbage collection

process. Be aware that these methods should alter pressure in



tandem and thus never remove more pressure than the total

amount you have added.

Collect()

Forces the GC to perform a garbage collection. This method has

been overloaded to specify a generation to collect, as well as the

mode of collection (via the GCCollectionMode enumeration).

CollectionCount()

Returns a numerical value representing how many times a given

generation has been swept.

GetGeneration()

Returns the generation to which an object currently belongs.

GetTotalMemory()

Returns the estimated amount of memory (in bytes) currently

allocated on the managed heap. The Boolean parameter specifies

whether the call should wait for garbage collection to occur

before returning.

MaxGeneration

Returns the maximum of generations supported on the target

system. Under Microsoft’s .NET 3.5, there are three possible

generations (0, 1, and 2).

SuppressFinalize()

Sets a flag indicating that the specified object should not have its

Finalize() method called.

WaitForPendingFinalizers()

Suspends the current thread until all finalizable objects have

been finalized. This method is typically called directly after

invoking GC.Collect().

To illustrate how the System.GC type can be used to obtain various garbage collection–centric

details, consider the following Main() method, which makes use of several members of GC:

C H A P T E R   8  




Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   510   511   512   513   514   515   516   517   ...   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