do timer callbacks all execute in the same thread

조회 수: 3 (최근 30일)
Jim Hokanson
Jim Hokanson 2016년 10월 10일
답변: Jeremy Hughes 2016년 10월 10일
I recently tried to start a timer, have the single-shot callback permanently execute, and then launch another timer further on down in the Matlab code. To my surprise, the 2nd timer never ran, even though the callback functions were different, suggesting that all timer callbacks execute in the same thread. Is this expected and documented behavior?

답변 (1개)

Jeremy Hughes
Jeremy Hughes 2016년 10월 10일
Hi Jim, The short answer is: Two timer callbacks cannot execute simultaneously.
Jeremy

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by