CS3370 (c++ software development) threading assignment