Multi-Client TCP Server with pthreads Mutex Synchronized - Code-walk of viewer code - Sekhar Pariga ↗Saturday' 01-Jan-2022
Here is a code-walk of a git-hub source submitted by a viewer Sekhar Pariga, which is a Multi-client TCP Server with pthreads Mutex
synchronized. Basically it is a Directory Listing Server, that serves ls, cd, pwd of directory functions to connecting TCP clients which are
remotely (locally) executed by the server.
Server is implemented using multi-thread pthread library, to serve multiple clients simultaneously. Server keeps the each accepted client session
details in the queue data structure. Client session queue contains each clients socket-fd and present working directory as a queue node.