How to collect garbage MonoTouch?

MonoTouch garbage collection details published anywhere? I am interested to know how this works on the iPhone. I'd like to know:

How often is this done, and are there any restrictions that may stop it from being executed. Regardless of whether it is fully protected by the stream, so objects transferred from one stream to another are handled appropriately if there are restrictions we should be aware of. If there is any benefit in manually calling the garbage collector before starting an action that will use memory. How it handles low memory notifications and runs out of memory.

Such information will help us understand the data of the stacks and flows that we have from the application logs.

[Edit] Now I found the information on the Hans Boehm website , but it is very general and lists various options and the execution options it has, including how the streams are handled. MonoTouch specific information is what I want here.

+5
source share
1 answer

The garbage collector is the same as used in Mono, the source code is here:

https://github.com/mono/mono/tree/master/libgc

It is completely thread safe and multi-core, which means that multiple threads can allocate objects, and it can collect garbage in the presence of multiple threads.

, , , ", , , , , ".

, API. API, . , .NET: , . API, .

API- UI, UIKit CoreGraphics, GUI, . UI , , UILabel, , . "BeginInvokeOnMainThread" NSObject, , , UIKit, .

.

http://monotouch.net/Documentation/Threading

UIViewControllers, Mono GC, .

+7

All Articles