For a process to be isothermal, any heat flow into or out of the system must occur slowly enough, so that thermal equilibrium is maintained. Hence, in a isothermal process, temperature during the whole process does not change i.e., internal energy which is a function of temperature remains same throughout the process.