Optimal Computational Resource Allocation for Control Task under Fixed Priority Scheduling