How Zeebe partition stores events of multiple process instances

Learning Zeebe Engine internal stream processing:

Team,
From the docs I understand that a Leader partition in Zeebe Broker stores all the events in as a stream of record. When it comes to multiple process instances, how does a partition store the events of 2 different process instances.?

If its a stream of record, will there be a conflict on the event of each of the 2 process instances?
Any links on understanding this behavior will be real helpful.

Thanks,
Saju