Home Online Manual
Back: addNvarsTo
Forward: createTask
Up: Singular Manual
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.2.12 tasks_lib

A parallel framework based on tasks

Andreas Steenpass, e-mail: steenpass@mathematik.uni-kl.de

This library provides a parallel framework based on tasks. It introduces a new Singular type task; an object of this type is a command (given by a string) applied to a list of arguments. Tasks can be computed in parallel via the procedures in this library and they can even be started recursively, i.e. from within other tasks.

tasks.lib respects the limits for computational resources defined in resources_lib, i.e., all tasks within the same Singular session will not use more computational resources than provided via resources.lib, even if tasks are started recursively.

The Singular library parallel_lib provides implementations of several parallel 'skeletons' based on tasks.lib.


D.2.12.1 createTask  create a task
D.2.12.2 killTask  kill a task
D.2.12.3 copyTask  copy a task
D.2.12.4 compareTasks  compare two tasks
D.2.12.5 printTask  print a task
D.2.12.6 startTasks  start tasks
D.2.12.7 stopTask  stop a task
D.2.12.8 waitTasks  wait for a certain number of tasks
D.2.12.9 waitAllTasks  wait for all tasks
D.2.12.10 pollTask  poll a task
D.2.12.11 getCommand  get the command of a task
D.2.12.12 getArguments  get the arguments of a task
D.2.12.13 getResult  get the result of a task
D.2.12.14 getState  get the state of a task
See also: parallel_lib; resources_lib.