lowered maximum number of threads to 2 to make test case easier.
include sched.h so test can invoke scheduler routines.