next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc > The Macaulay2 language > system facilities > fork

fork -- fork the process



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.