A magnetic sensor has a magnetic oscillation element including a first
magnetic resonance layer, a second magnetic resonance layer, a
nonmagnetic layer sandwiched between the first and second magnetic
resonance layers, and a pair of electrodes which supply a current
perpendicularly to planes of the first resonance layer, the nonmagnetic
layer and the second magnetic resonance layer, and a monitor monitoring a
change dependent on an external magnetic field in a change of a
high-frequency oscillation voltage generated across the magnetic
oscillation element due to precession of magnetization in at least one of
the first and second magnetic resonance layers caused by supplying the
current.