주요 콘텐츠

백그라운드 및 병렬 처리

코드를 백그라운드에서 또는 지정된 시간에 실행

MATLAB®에는 프로그램 실행에 대한 타이머를 설정하고 백그라운드에서 코드를 실행하는 기능이 포함되어 있습니다.

함수

모두 확장

timerSchedule execution of MATLAB commands
delete파일 또는 객체 삭제
isvalid유효한 핸들인지 확인
start타이머 시작
startatSchedule timer to fire at specified time
stopStop timer
timerfindFind timer objects
timerfindallFind all timer objects
wait타이머 실행이 중지될 때까지 명령 프롬프트 차단

백그라운드 실행

parfeval백그라운드에서 함수 실행 (R2021b 이후)
parfevalOnAll백그라운드의 모든 워커에 대해 함수 실행
backgroundPool백그라운드에서 코드를 실행하기 위한 환경 (R2021b 이후)

Future 객체

fetchOutputsRetrieve results from function running in the background
afterEachRun function after each function finishes running in the background
afterAllRun function after all functions finish running in the background
cancelStop function running in the background
cancelAllStop all functions running in the background (R2022a 이후)
waitFuture 객체가 완료될 때까지 대기
fetchNextRetrieve next unread outputs from Future array
FutureFunction scheduled to run

데이터 대기열

sendSend data to DataQueue or PollableDataQueue
pollRetrieve data from PollableDataQueue
closeClose pollable data queue (R2025a 이후)
afterEachRun function after data is received on DataQueue
parallel.pool.DataQueueSend and automatically process data
parallel.pool.PollableDataQueueSend and manually retrieve data
parallel.pool.ConstantCopy or create data only once on workers in parallel pool (R2021b 이후)