Wait - Maple Help

Online Help

All Products    Maple    MapleSim


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)

idCreateintsinxx,x,d

id1

(2)

d

d

(3)

Waitid

d

sinxxⅆx

(4)

id1Createint1xx,x,d1

id12

(5)

id2Createintxx,x,d2

id23

(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]