Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Ajuda do Scilab >> Parallel > parallel_concurrency

parallel_concurrency

query about the concurrency of the current execution context

Calling Sequence

C=parallel_concurrency()

Description

parallel_concurrency() returns a non-zero value when called from a parallel execution context (such as parallel_run.

function r=dummy_arg(n)
  r= parallel_concurrency();
  endfunction;
parallel_concurrency() // returns 0
// parallel_run requires a function taking at least one argument
parallel_run(1:2,dummy_arg)// returns 2 non zero values
Report an issue
<< Parallel Parallel parallel_run >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:57:52 CEST 2014