Modify the main function in server.c to handle 's' and 'g' commands as well as creating new threads (blank line - no command)
Define a global struct in server.c with members of type:
- pthread_mutex_t go;
- pthread_cond_t cond;
- int stop;
and initialize. What initial values?
Create three functions to control the database client threads
- clientwait()
- clientgo()
- clientstop()
Use the global struct in these functions.
What should each one do and how should each one be implemented?