A method for controlling temperature of a terminal, comprising: receiving, by the terminal, a first instruction for triggering execution of a first task; obtaining, by the terminal, a current temperature of the terminal; and suspending, by the terminal, the first task based on the current temperature, to control temperature of the terminal; after the terminal suspends execution of the first task, the method further includes: if the current temperature is higher than or equal to a first temperature and lower than a second temperature, when duration of the suspension of the first task reaches a second preset duration, executing, by the terminal, the first task; if the current temperature is higher than or equal to the second temperature, when duration of the suspension of the first task reaches a third preset duration, executing, by the terminal, the first task, wherein the second preset duration is less than the third preset duration, and the first temperature is a safe temperature threshold and the second temperature is a dangerous temperature threshold so that the first temperature is lower than the second temperature, characterized in that the first task comprises: downloading an application, updating an application on the terminal, installing an application, or starting a background process, and wherein suspending execution of the first task by the terminal is controlled inside the terminal without user awareness. receiving, by the terminal, a first instruction for triggering execution of a first task; obtaining, by the terminal, a current temperature of the terminal; and suspending, by the terminal, the first task based on the current temperature, to control temperature of the terminal; after the terminal suspends execution of the first task, the method further includes: if the current temperature is higher than or equal to a first temperature and lower than a second temperature, when duration of the suspension of the first task reaches a second preset duration, executing, by the terminal, the first task; if the current temperature is higher than or equal to the second temperature, when duration of the suspension of the first task reaches a third preset duration, executing, by the terminal, the first task, wherein the second preset duration is less than the third preset duration, and the first temperature is a safe temperature threshold and the second temperature is a dangerous temperature threshold so that the first temperature is lower than the second temperature, if the current temperature is higher than or equal to a first temperature and lower than a second temperature, when duration of the suspension of the first task reaches a second preset duration, executing, by the terminal, the first task; if the current temperature is higher than or equal to the second temperature, when duration of the suspension of the first task reaches a third preset duration, executing, by the terminal, the first task, wherein the second preset duration is less than the third preset duration, and the first temperature is a safe temperature threshold and the second temperature is a dangerous temperature threshold so that the first temperature is lower than the second temperature, characterized in that the first task comprises: downloading an application, updating an application on the terminal, installing an application, or starting a background process, and wherein suspending execution of the first task by the terminal is controlled inside the terminal without user awareness. downloading an application, updating an application on the terminal, installing an application, or starting a background process, and wherein suspending execution of the first task by the terminal is controlled inside the terminal without user awareness.