A basic multi-threaded server in C. Locking global variable and some terrible string parsing.