Threshold frequency: the minimum frequency of a photon that can eject an electron from a surface
Work function: the minimum energy needed to remove an electron from within a solid to a point outside its surface in a vacuum.
So it can be seen that threshold frequency and work function are...