main() {
/* code calling another class method
that use multi-threading*/ // A block
sysou("print"); //B block
}
The way it is right now, even though A block got processed 1st, then B block has been executed and the remaining threads of A block.
I want to execute the B block, after all the treads created in A block have finished executing.