When I use parfor in the program, the program seems to fall into an endless loop in the remoteparfor.m file, resulting in the program's delay in output.What's going on?

조회 수: 5 (최근 30일)
When I use parfor in the program, the program seems to fall into an endless loop in the remoteparfor.m file, resulting in the program's delay in output.What's going on?

답변 (1개)

Edric Ellis
Edric Ellis 2022년 3월 21일
The file "remoteparfor.m" is part of the implementation of a parfor loop. The main job of this piece of code is to wait for results to arrive from the workers - it's not doing any work itself. So while it may appear to be sitting in an infinite loop, it really is just waiting for whatever the workers are doing, and will complete as soon as they have completed.
  댓글 수: 5

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

카테고리

Help CenterFile Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by