Thermodynamics and emergent universe