Exercising in high temperatures: Tips from the Tokyo Olympics

What is the science behind exercising in high temperatures, and what can be done about it?