Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 6.0.2. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Parallel > parallel_concurrency


query about the concurrency of the current execution context




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();
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
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 19:58:46 CET 2018