Clarification for parallel process

2 visualizaciones (últimos 30 días)
Pramit Biswas
Pramit Biswas el 2 de Mayo de 2018
Comentada: Ameer Hamza el 2 de Mayo de 2018
I have set up one mainScript, where one parallel for initiates calling of func1 function. This function calls script1 within. This means at a time several for loop is accessing script1 (though through a function). Can these be a problem for variables?
mainScript
func1
script1

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 2 de Mayo de 2018
No, every function call has its own workspace, they do not interfere with each other unless you try to do it yourself (for example using evalin(), assignin() etc.).
  2 comentarios
Walter Roberson
Walter Roberson el 2 de Mayo de 2018
However, scripts are not functions.
On the other hand, workers in parallel processing are independent processes, and cannot interfere with each other even using evalin() or assignin()
Ameer Hamza
Ameer Hamza el 2 de Mayo de 2018
Thanks for the clarification.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by