In general terms an oscillator takes in energy, AC or DC, and
produces an ac signal that has some specific characteristic, not
necessarily related to the energy source used. Typically in our
terms a waveform with a specific frequency(s).
In short wavelength work, optical spectrum and above, the oscillator
is pumped by an ac signal and produces, typically, a fixed frequency
of light or wave.
Regards, Dana.