Critical speed occurs when a rotating shaft's speed matches its natural transverse (whirling) frequency, causing resonance and large deflections. Since this natural frequency for a simple rotor-shaft system is governed by the same physics as any spring-mass system, \( \omega_n = \sqrt{k/m} \), let's check what determines it.
The natural frequency relation confirms that both mass and stiffness together determine the critical speed.
Therefore, the correct answer is mass and stiffness.