Multi-Threaded Tasks

Top  Previous  Next

Diamond allows CPU tasks to be fully multi-threaded. This means that a task can contain any number of concurrent processes, or threads, each of which is independently executing code in the task. All the threads in a task share the same static, extern and heap data. The threads can still operate independently because each one is given its own stack for auto variables.