Multi-threaded web server implemented with sockets and pthreads