The criteria for stability of eutectics,solid solutions and precipitates are proposed.It is based on the Thomas-Fermi-Dirac model on the boundary conditions that electr on densities and chemical potentials should be equal in either side of a co mposite film.The optimum condition for stabilizing the energ y balance and the sizes of eutectics o r precipitates is given.