copied provided scheduling.c into lab5