← Back to team overview

marionnet-dev team mailing list archive

[Branch ~marionnet-drivers/ocamlbricks/trunk] Rev 499: Added support for "forking futures" in the module Future. Also, the interface of the module has b...

 

------------------------------------------------------------
revno: 499
committer: Jean-Vincent Loddo <loddo@xxxxxxxxxxxxxxxxxxxx>
branch nick: ocamlbricks
timestamp: Sun 2020-04-12 21:41:12 +0200
message:
  Added support for "forking futures" in the module Future. Also, the interface of the module has been refactored. A call of Future.fork call starts two new branches of computation, which are (1) a fork of the main process and (2) a thread waiting for the fork termination. When the fork terminates, it transmits its result (serialized with closures) to the tutoring thread by a pipe, and the latter deliver something "touchable" to the main process. By default, a call to Gc.compact() is performed before forking, but it can be disable with the related option. The native program tests/test_future.ml showns some satisfactory performances of forking futures with a sufficiently heavy computation.
added:
  tests/test_future.ml
modified:
  Makefile.local
  STRUCTURES/egg.ml
  STRUCTURES/future.ml
  STRUCTURES/future.mli


--
lp:ocamlbricks
https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk

Your team marionnet-dev is subscribed to branch lp:ocamlbricks.
To unsubscribe from this branch go to https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk/+edit-subscription