Evolution of close binaries. Part 8. Mass exchange on the dynamical time scale