Here is the code
As you can see, all you have to do is start a new thread where people view your messageboard post. This worker thread essentially does your homework for you. While this thread is working, you call your relax() and have_fun() methods. Finally your worker thread finishes, and you get a pointer to the completed_homework. All that's left to do is call the turn_in_homework() function, passing it the completed_homework reference you got from the worker thread.
void* ask_others(void *read_post)
int *other_people = (int*)read_post;
int completed_assignment = do_homework();
Let me know if you have any more questions.