created faster and with lesser resources.
Features Completion Streams
At the end of the stream, its resources are released (first of all, the
folder); this operation is usually faster than completing the process. The
flow may be completed when the control
reaches the end of the flow
procedure; there are also special system calls intended for early termination
of flows.
Like processes, threads can be
executed synchronously and
asynchronously. A thread that created another thread may pause its
execution until it is completed. This expectation is called
joining streams (
thread joining). Upon completion of the attached thread, the thread that was
waiting to complete it may receive execution status. When creating a stream
or
joining it, if the stream cannot connect,
it is called disconnected or
detached. If the stream is not disconnected, it is called
Pluggable , after
which it is necessary to join them to stop memory leakage .