A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ocaml-multicore/ocaml-multicore/issues/357 below:

Implementation of systhreads with pthreads · Issue #357 · ocaml-multicore/ocaml-multicore · GitHub

Following further discussion around implementing systhread compatibility with domains, we should explore porting the existing systhread implementation using pthreads to multicore.

The idea would be to implement systhread as it is done upstream by utilizing the caml_enter_blocking_section/caml_leave_blocking_section hooks to provide a mechanism to context switch as in caml_thread_save_runtime_state/caml_thread_restore_runtime_state. It would need to make sure that we interface with the multicore runtime to handle local roots registration, local root scanning and backup threads (#356) correctly. It should inherit the existing systhread scheduling mechanism.

The aim is to provide an implementation which is compatible with the existing systhread.

It is left as future work to support a more advanced threading implementation that integrates with effects, as discussed on #100.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4