Statistical Mechanics of Irreversible Processes in Polymer Solutions