(Mono Attachment) Parallel Domain Activation

I am wondering if it is possible to activate several monophonic domains and execute them in parallel with the native code :

I use the following code to activate a domain:

///Create a new domain. m_domain = mono_domain_create(); ///Activate the domain. mono_domain_set(m_domain, 0); ///Invoke some function ... mono_runtime_invoke (m_method, m_objectInstance, NULL, &exception); 
+7
source share
2 answers

Yes, it can be done. Given that the Mono virtual executable works with your C application when it is embedded (and shares the same address space), the best approach would be to run each domain in a separate process. The easiest way to do this is to have your fork code multiple processes, and each process manage a separate instance of the Mono domain. You will need to write code to coordinate interprocess communications, in particular, to clean and shut down applications.

+1
source

From a .NET perspective, I would say yes

Internet archives were able to return this once-universal resource:

http://replay.waybackmachine.org/20070228090021/http://www.gotdotnet.com/team/clr/AppdomainFAQ.aspx

+1
source

All Articles