Synchronization of sequences

Hi,

in a virtual sequence I generate sequences and start them in parallel on different sequencers. The sequence itself generates a fixed amount of transactions in a for loop, randomizes them and starts them. What is the best way to synchronize the sequences so that each sequence produces the same random transaction in each iteration?

Virtual sequence body:

example_sequence seqs[3];
fork
  begin
    seqs[0] = example_sequence::type_id::create("seqs[0]");
    seqs[0].start(m_seqr[0]);
  end
  begin
    seqs[1] = example_sequence::type_id::create("seqs[1]");
    seqs[1].start(m_seqr[1]);
  end
  begin
    seqs[2] = example_sequence::type_id::create("seqs[2]");
    seqs[2].start(m_seqr[2]);
  end
join

Thanks!

You could probably create one stream of transactions and then send a copy of the the transaction to each sequence.

2 Likes