Threads - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Multithreaded Programming : Threads/Wait

Threads

  

Wait

  

wait for a thread to finish

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Wait( id1, id2, ... )

Parameters

id1, id2, ...

-

(integer) thread identifiers

Description

• 

The Wait command pauses the current thread until the threads specified as arguments finish.

Examples

withThreads

Add,ConditionVariable,Create,Map,Mul,Mutex,Self,Seq,Sleep,Task,Wait

(1)

idCreate∫sinxxⅆx,d

id:=1

(2)

d

d

(3)

Waitid

d

∫sinxxⅆx

(4)

id1Create∫1xxⅆx,d1

id1:=2

(5)

id2Create∫xxⅆx,d2

id2:=3

(6)

d1,d2

d1,d2

(7)

Waitid1,id2

d1,d2

∫1xxⅆx,∫xxⅆx

(8)

See Also

Threads

Threads[ConditionVariable]

Threads[Create]

Threads[Mutex]

Threads[Self]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam