Due to the versatile functions and the potential ability of monolithic integration, semiconductor ring laser (SRL) has received increasing attention recently in the application of all-optical logic unit. In this paper, InP/AlGaInAs multiple quantum well (MQW) ring lasers with different cavity structures were designed and fabricated using the optimized process parameters. The measurement results shown that the fabricated microring lasers have a wide bistability operation regime, and are suitable for the all-optical logic gate and the optical random storage memory. Based on the optical bistability and the injection locking of ring laser, Boolean function AB was demonstrated by using one of the monolithic integrated ring lasers, and an alloptical XOR gate can be obtained by two completely symmetrical SRLs integrated on one chip.