Viscosity and thermodynamics of macromolecular solutions