My problem is that I want only 2 threads to be running at the same time, but I MUST use promise and future, and make sure there is no busy-waiting and unnecessary delay, if