In other words, provide a join function where a uThread can wait for another uThread to finish its task and terminate. For example in a producer-consumer relationship, the consumer thread might spawn a new uThread and later has to wait for that uThread to finish and produce some work for it to continue.
In other words, provide a join function where a uThread can wait for another uThread to finish its task and terminate. For example in a producer-consumer relationship, the consumer thread might spawn a new uThread and later has to wait for that uThread to finish and produce some work for it to continue.