Optimizing Power Consumption, Resource Utilization, And Performance For Manycore Architectures Using Reinforcement Learning