Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > system facilities > fork
next | previous | forward | backward | up | index | toc

fork -- fork the process

Synopsis

Description

Platforms that do not have a built-in fork() function will always return -1.

Warning: in multithreaded programs like Macaulay2, very few operations can be safely done in the child. This is especially true when the user has been parallel programming with threads and tasks. Even allocating memory in the child may hang the process.

For the programmer

The object fork is a compiled function.