# Thread join()

- 1

Sam Samson wrote:

Is it right that the output could be "r1 m1 r2 m2"? I'm asking because this answer is missing in the possible solutions.

Yes, that output is possible.

The constraints are as follows:

Any order that adheres to those constraints is valid. And we can actually simplify it down to: