Is Core Nano_mutex a replacement for Mutex from stdlib?

I’m not familiar with sharing mutexes across processes, but indeed, the documentation warns: “A nano-mutex is a lightweight mutex that can be used only within a single OCaml runtime.” It relies on the OCaml runtime lock for certain guarantees about where context switches can happen, here for example.

It’s appropriate for controlling access to some data structures between multiple Async/Lwt threads, but I guess not across processes.