Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Threads[Sleep] - エンジンの実行を一時停止する
使い方
Sleep( n )
パラメータ
n
-
(numeric)一時停止の秒数
説明
Sleep 関数は、Maple エンジンの実行を指定した時間一時停止します。一時停止中、エンジンは CPU 資源を使用しません。
n は待ち時間です。1 秒より短い停止を指定するため n を 1 より小さい値に設定することもできます。
一時停止の時間は、システムの稼動状態、コールの処理時間、システムタイマーの分解能などにより長くなることがあります。
Sleep コマンドはスレッド間の同期には利用すべきでありません。他のスレッドが準備完了となるまでスレッドを Sleep で待たせる方法では信頼性が確保できません。そのような用途には mutex や 条件付き変数 を使用してください。
互換性
Threads[Sleep] コマンドは Maple 15 より導入されました。
Maple 15 の変更点に関する詳細は Maple 15 更新情報 をご覧ください。
例
with(Threads):
tCPU := time():
tReal := time[real]():
Sleep( 5 );
time[real]()-tReal;
time()-tCPU;
参照
Threads, time
Download Help Document