Communication between two agents in an env

In reply to mseyunni:

In reply to tfitz:
Hi Tom,
Do you mind pointing to the video(s) that explain what you described here as there are multiple videos out there.
Thanks,
Madhu

In my eyes the videos do not really touch this topic and also the solution from mperyer is a very specific one.
My recommendation is to deal with uvm_event/uvm_event_pool or uvm_barriers. These are the constructs assigned for the synchronisation of the work of different agents.
Unfortunately the Verification Academy does not show good examples for this.