Two bodies of masses $m_{1}$ and $m_{2}$ are connected by a light, inextensible string which passes over a frictionless pulley. If the pulley is moving upward with uniform acceleration $g$, then the tension in the string is
(a) $\frac{4 m m_{2}}{m_{1}+m_{1}} g$
(b) $\frac{m_{1} m_{2}}{4 m_{1} m_{2}} g$
(c) $\frac{m_{1} m_{2}}{m_{1}+m_{1}} g$
(d) $\frac{m_{1}-m_{1}}{m_{1}+m_{1}} g^{2}$