Relaxation phenomena in classical and quantum systems