Multiprogramming with a Fixed number of Tasks