do timer callbacks all execute in the same thread

1 回表示 (過去 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 Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by