Light of wavelength λ falls on a metal having work function hc/λ0. Photoelectric effect will take place only if

If, the energy supplied to the electron is smaller than the work function and hence no electron will come out of the metal. Thus, when, the energy supplied to the electron is now larger than the work function and hence electron will come out of the metal. Therefore, the photoelectric effect takes place.

1