I have a class in C #, for example:
public MyClass
{
public void Start() { ... }
public void Method_01() { ... }
public void Method_02() { ... }
public void Method_03() { ... }
}
When I call the "Start ()" method, the outer class starts working and creates many parallel threads, which these parallel threads call the form "Method_01 ()" and "Method_02 ()" above the class. after the work of the external class, "Method_03 ()" will be executed in another parallel thread.
The streams "Method_01 ()" or "Method_02 ()" are created before the creation of the stream Method_03 (), but there is no guarantee that you need to finish before the start of the stream "Method_03 ()". I mean that "Method_01 ()" or "Method_02 ()" will lose the processor turn, and "Method_03" will return the processor and will end completely.
"()" , "Method_01" "Method_02()" . , , , "Method_03()" , "Method_01()" "Method_02()" ,.