Can we use two pulseIn() functions simultaneously in an Arduino Program?

Hi memes,
can anyone explain how to use two pulseIn() functions simultaneously in arduino if not what is the replacement?
Thanks,
Chakri

how to use two pulseIn() functions simultaneously in arduino

You can't. pulseIn() is a blocking function so it must finish before a second one can start.

Consider the use of interrupts instead but keep the ISRs short and act on the fact that they occurred at a convenient point in loop().