Lasing interaction in two coupled ring resonators with a common holographic amplifier based on a photorefractive crystal is analyzed. Intracavity loss ratios are determined for which lasing occurs in both resonators simultaneously or in each one separately. The competition of lasing modes, which is relevant to problem in associative optical memory, is discussed.