When William Ackman began building a $5.5 billion stake in Mondelez International Inc., he did so knowing that another activist investor had already built a position. Nelson Peltz, a co-founder of Trian Fund Management LP, has served on the food company’s board since early last year.

It’s hardly the first time two prominent activists have ended up in the same stock.