Decoherence due to thermal effects in two quintessential quantum systems