필터 지우기
필터 지우기

Clarification for parallel process

조회 수: 1 (최근 30일)
Pramit Biswas
Pramit Biswas 2018년 5월 2일
댓글: Ameer Hamza 2018년 5월 2일
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

채택된 답변

Ameer Hamza
Ameer Hamza 2018년 5월 2일
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
Walter Roberson
Walter Roberson 2018년 5월 2일
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 2018년 5월 2일
Thanks for the clarification.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by