I know the mechanism by which shear viscosity produces shear stress in gases; i.e. exchange of molecules hence momentum between two layers of fluid because of random thermal motion. But how does this process generate entropy and dissipate kinetic energy of bulk motion into random thermal motion of molecules.