Gas-liquid two-phase flow is pervasive in industrial processes, and accurate measurement of its parameters can effectively improve industrial efficiency. Void fraction, a key parameter in gas-liquid two-phase flow, plays a crucial role in mixture density determination and flow structure analysis. In this paper, a novel multi-task learning method is proposed to predict the gas void fraction. Firstly, we conduct vertical upward gas-liquid two-phase flow experiments to obtain fluid signals relying on the four-sector distributed conductance sensor. Then, we pair the measurement of gas void fraction and its classification and design a Co-Attention based Cross-Stitch Network (CACSNet) to process these two closely related tasks simultaneously. In CACSNet, two parallel embedding branches are adopted to extract task-specific features. There are three feature extractors in each branch to capture in-depth representations of temporal and spatial. To learn an optimal combination of these task-specific features and generate shared representations, we propose the Cross-stitch Embedding with Attention Modules (CEAM), which is incorporated the Channel Co-Attention Module (CCAM) and the Temporal Co-Attention Module (TCAM). Finally, we compare our CACSNet with single-task baseline and other competitive methods, which proves that our framework achieves superior performance in gas void fraction prediction. We also conduct detailed model ablation and parameter analysis to illustrate the efficiency of our proposed structure.