[Mono-dev] GSOC 2017 Microsoft .NET and Mono integration - Import ThreadPool from CoreRT
aedampir at gmail.com
Wed Mar 29 13:18:48 UTC 2017
Ludovic, thank you for this information, I decided to choose importing
synchronization primitives, because it is less experimental than ThreadPool
importing. I'll send some questions about this task on your private email.
2017-03-28 0:07 GMT+07:00 Ludovic Henry <luhenry at microsoft.com>:
> Hi Alexander,
> Integrating the CoreRT threadpool into Mono will be more of an experiment
> than a project that we envision merging by the end of GSoC into Mono. If
> that's find by you, then it's perfectly fine by us. Another project that
> would have more impact and that we are looking forward to merge would be
> importing System.Threading.Mutex, System.Threading.Semaphore
> and System.Threading.EventWaitHandle from CoreRT into Mono. Whichever
> project you choose is definitely up to you, and whichever you choose, it
> will be of great use for us.
> To discuss each project in more details, importing
> System.Threading.ThreadPool would consist in getting https://github.com/
> System/Threading/ThreadPool.cs and its dependencies from CoreRT, and
> adapting it to the use of Mono. Some features are not supported by the
> CoreRT ThreadPool such as SetMinThreads, SetMaxThreads, GetMinThreads,
> GetMaxThreads, or other APIs, and because we cannot just drop the support
> for these, we need to make sure they are implemented and supported. Right
> now, our ThreadPool implementation is coming from ReferenceSource for the
> managed part and we reimplemented the native part into Mono from CoreCLR (
> https://github.com/mono/mono/blob/master/mono/metadata/threadpool.c and
> For System.Threading.Mutex, System.Threading.Semaphore
> and System.Threading.EventWaitHandle, the project would consist in
> replacing our implementation of these classes with the one from CoreRT. Our
> implementation resides in https://github.com/mono/
> referencesource/System/sys/system/threading/semaphore.cs and
> referencesource/mscorlib/system/threading/eventwaithandle.cs respectively.
> For both these projects, as well as the other integration of .NET sources
> into Mono, we need to ensure that we keep supporting the same platforms as
> before, thus fixing or extending the CoreRT implementations.
> If you have any more question, I will be more than happy to answer them! :)
> Thank you very much!
> On 24 Mar 2017, at 12:16, dampir <aedampir at gmail.com> wrote:
> I’m Alexander Efremov and I’m interested in GSOC projects of Mono.
> Particulary I'm interested in "Import ThreadPool from CoreRT" (mentor
> Ludovic Henry).
> I successfully builded mono on my PC and now I think how to write a good
> proposal devoted to import ThreadPool from CoreRT.
> I have read 2 topics devoted to Microsoft .NET and Mono integration:
> but they mainly devoted to two other integration tasks (Import
> System.IO.FileStream from CoreFX,
> Import Process from CoreFX).
> From there I got some common understanding what is supposed to do in these
> tasks, exactly:
> * Replace Mono's ThreadPool implementation on CoreFx one.
> * Add support of some unsupported platforms to CoreFx.
> * Add/edit a bunch of unit tests.
> But my intention is integrate ThreadPool class from CoreFx. And in order to
> write good and clear proposal I started to dig into source code connected
> Mono's ThreadPool. But I think that my knownledge about it is not enough to
> create appropriate time schedule (week-by-week) in my proposal.
> So my quesion is: Ludovic could you please describe in some details what
> stages the integration of CoreFx ThreadPool is entail (like you describe in
> for System.IO.FileStream integration)?
> I'm going to use this infromation to dig in right direction.
> Thank you.
> View this message in context: http://mono.1490590.n4.nabble.
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> Mono-devel-list mailing list
> Mono-devel-list at lists.dot.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list