Scheduling and Congestion Control for Wireless and Processing Networks