Computation and Communication Co-Design for Real-Time Monitoring and Control in Multi-Agent Systems