We propose a simultaneous optical signal recognition (OSR) and optical signal-to-noise ratio (OSNR) monitoring method by using multi-task learning convolutional neural network (MTL-CNN) in conjunction with optical spectrums, which enables optical performance monitoring (OPM) in the optical transmission network. In order to achieve a trade-off between monitoring loss and time consumption of the MTL-CNN constructed for seven commonly used signals with a spectrum resolution of 10 pm, the number of feature map channels in four convolutional layers is delicately designed as 32, 32, 64, and 64 with task weights set to 0.4 and 0.2, corresponding to OSNR monitoring and OSR, respectively. Simulation results manifest that this method can realize the recognition of the received optical signals with an overall accuracy of 100% and also enable OSNR monitoring with the mean absolute error (MAE) of 0.262 dB. The proposed method shows strong robustness to various distortions and exhibits good performance in terms of time consumption. The effectiveness is further verified by proof-of-concept experiments in three signals. These illustrate that our method is a promising solution for multi-parameter monitoring with high accuracy and efficiency.