It is shown that the thermal equilibrium distribution of pile-up dislocations in a stressed crystal can be obtained by solving self-consistently a mean-field single-particle Schrodinger equation. This last equation is derived exactly, using a variational technique, from a many-particle Schrodinger ...