# \#domainslib

**URL:** https://discuss.ocaml.org/tag/domainslib/505.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [Multiple domains design question in Eio/etc](https://discuss.ocaml.org/t/multiple-domains-design-question-in-eio-etc/15861)

<div class="topic-metadata">

**Author:** [@yawaramin](https://discuss.ocaml.org/u/yawaramin)\
**Replies:** 7\
**Last updated:** [January 5, 2025, 6:35am UTC](https://discuss.ocaml.org/t/multiple-domains-design-question-in-eio-etc/15861 "2025-01-05T06:35:00Z")

</div>

I have an app design question regarding the use of multiple domains in say Eio or some other multicore library. We can do eg let num\_domains = Domain.recommended\_domain\_count () - 1 let additional\_domains = Eio.Stdenv.d…

---

## [How to interrupt tasks of DomainsLib?](https://discuss.ocaml.org/t/how-to-interrupt-tasks-of-domainslib/15603)

<div class="topic-metadata">

**Author:** [@Kakadu](https://discuss.ocaml.org/u/Kakadu)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 2:02pm UTC](https://discuss.ocaml.org/t/how-to-interrupt-tasks-of-domainslib/15603 "2024-11-13T14:02:45Z")

</div>

We have issues with interruption of our parallel program in OCaml 5.2 (+flambda). Our programs runs many tasks via Domainslib.Task.parallel\_for and we want to interrupt and print currently found data via Ctrl-C. I can’…

---

## [Domainslib blocking on Chan.recv](https://discuss.ocaml.org/t/domainslib-blocking-on-chan-recv/14537)

<div class="topic-metadata">

**Author:** [@nhuber](https://discuss.ocaml.org/u/nhuber)\
**Replies:** 10\
**Last updated:** [April 23, 2024, 6:12pm UTC](https://discuss.ocaml.org/t/domainslib-blocking-on-chan-recv/14537 "2024-04-23T18:12:09Z")

</div>

Hej :slight\_smile: While playing around with domainslib I have encountered an interesting case when using channels. I have created the following minimal example to demonstrate it: module T = Domainslib.Task module C =…

---

## [Interaction between eio and domainslib, unhandled exceptions?](https://discuss.ocaml.org/t/interaction-between-eio-and-domainslib-unhandled-exceptions/11971)

<div class="topic-metadata">

**Author:** [@ElectreAAS](https://discuss.ocaml.org/u/ElectreAAS)\
**Replies:** 7\
**Last updated:** [April 20, 2023, 9:06am UTC](https://discuss.ocaml.org/t/interaction-between-eio-and-domainslib-unhandled-exceptions/11971 "2023-04-20T09:06:02Z")

</div>

Hello, I am trying to build something using both eio and domainslib, and I’m quite stumped by their interaction. According to the readme of eio, calls to various functions require a Eio.Stdenv.t, most likely given by E…

---

## [【Q】Why is it 0?](https://discuss.ocaml.org/t/q-why-is-it-0/11688)

<div class="topic-metadata">

**Author:** [@anzhi0708](https://discuss.ocaml.org/u/anzhi0708)\
**Replies:** 2\
**Last updated:** [March 17, 2023, 9:58am UTC](https://discuss.ocaml.org/t/q-why-is-it-0/11688 "2023-03-17T09:58:35Z")

</div>

Hello! I’m both an OCaml beginner and a CS beginner AKA a noob. I was expecting variable money’s value to equal to 0 since race condition but its value was still 0. Can someone explain? Thanks a lot :3 let money = ref…

---

## [Multicore: Building an in-memory pubsub with domainslib (and eio)](https://discuss.ocaml.org/t/multicore-building-an-in-memory-pubsub-with-domainslib-and-eio/9351)

<div class="topic-metadata">

**Author:** [@dangdennis](https://discuss.ocaml.org/u/dangdennis)\
**Replies:** 7\
**Last updated:** [February 19, 2022, 3:37pm UTC](https://discuss.ocaml.org/t/multicore-building-an-in-memory-pubsub-with-domainslib-and-eio/9351 "2022-02-19T15:37:12Z")

</div>

I attempted to build an in-memory pubsub with domains and domainslibs channels. It’s usually a pretty straightforward implementation in Go with channels. Sending, waiting, and receiving on domainslib channels appear to l…
