Threads
Wait
wait for a thread to finish
Calling Sequence
Parameters
Description
Examples
Wait( id1, id2, ... )
id1, id2, ...
-
(integer) thread identifiers
The Wait command pauses the current thread until the threads specified as arguments finish.
with(Threads);
Add,ConditionVariable,Create,Map,Mul,Mutex,Self,Seq,Sleep,Task,Wait
id := Create( int( sin(x)^x, x ), d );
id≔1
d;
d
Wait( id );
∫sin⁡xxⅆx
id1 := Create( int( (1/x)^x, x ), d1 );
id1≔2
id2 := Create( int( x^x, x ), d2 );
id2≔3
d1, d2;
d1,∫xxⅆx
Wait( id1, id2 );
∫1xxⅆx,∫xxⅆx
See Also
Threads[ConditionVariable]
Threads[Create]
Threads[Mutex]
Threads[Self]
Download Help Document
What kind of issue would you like to report? (Optional)