MATLAB 도움말 센터
모든 작업 또는 태스크 취소
R2022a 이후
cancelAll(p.FevalQueue)
cancelAll(p.FevalQueue)는 지정된 풀에서 대기 중이거나 실행 중인 모든 요소를 중지합니다.
p.FevalQueue
예제
모두 축소
병렬 풀을 만듭니다.
pool = parpool;
Starting parallel pool (parpool) using the 'Processes' profile ... Connected to the parallel pool (number of workers: 6).
parfeval을 사용하여 pause(Inf)를 실행하고 출력값을 확인하지는 않습니다.
parfeval
pause(Inf)
f = parfeval(pool,@pause,0,Inf);
풀에서 대기 중인 함수와 실행 중인 함수의 상태를 확인합니다.
pool.FevalQueue
ans = FevalQueue with properties: QueuedFutures: [0x0 parallel.FevalFuture] RunningFutures: [1x1 parallel.FevalFuture]
cancelAll을 사용하여 FevalQueue에서 모든 Futures를 중지합니다.
cancelAll
FevalQueue
Futures
cancelAll(pool.FevalQueue) pool.FevalQueue
ans = FevalQueue with properties: QueuedFutures: [0x0 parallel.FevalFuture] RunningFutures: [0x0 parallel.FevalFuture]
FevalFuture
백그라운드 풀에서 실행할 FevalFuture 객체의 대기열로, FevalFuture 스칼라와 FevalFuture 배열로 지정됩니다.
모두 확장
backgroundPool
ThreadPool
이 함수는 스레드 기반 환경을 완전히 지원합니다. 자세한 내용은 스레드 기반 환경에서 MATLAB 함수 실행하기 항목을 참조하십시오.
R2022a에 개발됨
parfeval | cancel | delete
cancel
delete
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의