EmbLogic's Blog

Project 04: Client-Server using Threads and Sockets

Threads are “light weight processes” (LWPs). The process has five fundamental parts: code (“text”), data (VM), stack, file I/O, and signal tables. “Heavy-weight processes” (HWPs) have a significant amount of overhead when switching: all the tables have to be flushed from the processor for each task switch. Also, the only way to achieve shared information between HWPs is through pipes and “shared memory”. If a HWP spawns a child HWP using fork(), the only part that is shared is the text.

Sockets are interfaces that can “plug into” each other over a network. Once so “plugged in”, the programs so connected communicate.

15 Responses to Project 04: Client-Server using Threads and Sockets

  1. admin says:

    Threads reduce overhead by sharing fundamental parts. By sharing these parts, switching happens much more frequently and efficiently. Also, sharing information is not so “difficult” anymore: everything can be shared. There are two types of threads: user-space and kernel-space.

  2. ankit.mishra says:

    Dear sir
    I have completed client ans server application using socket within the system for three clients.
    Thanks.

  3. balpreet singh says:

    implemented ftp project using threads for parallel read and write operations for several clients, sockets for data establishing connection b/w two end points and mutex’s for synchronisation .

    thanxx !!

  4. implemented ftp project using threads for parallel read and write operations for several clients, sockets for establishing connection b/w two end points and tranferring the data b/w the end points and mutex’s for synchronisation .

    thanxx !!

  5. Harsimran singh says:

    sir ,
    i have implemented ftp project in which clients are able te perform get and put operations on server. I have used threads for multiple clients , sockets for communication and mutex for synchronisation .
    But i am facing problem when the server comes on read on block after locking the mutex then threads os other’s clients waits for the unlocking and whole system comes in deadlock and other clients are unable to perform operations..

  6. satbeer singh says:

    socket and thread applied

  7. rishi kumar says:

    some issue in multiple clients chatting at a time ….

  8. jai kumar says:

    working on sokets and thread project….

  9. ashishdahiya1990 says:

    working on project 4 applied threads and sockets on same machine

  10. kuldeep singh says:

    chating multiple clients with server across the network using socket,thread

  11. Jagbir Singh says:

    chatting between server and multiple clients is done using socket and threads.Now working on ftp project……….

  12. ankit.mishra says:

    Dear Sir
    I have completed client server projet using threads and sockets.Server is communicating with three clients.I have did this within the system and across the network.I have implemented FTP command like “get”,”put” and “ls” .
    thanks for your kind attention.

  13. Hi all,

    I have implement client server FTP project using Sockets and Threads with 3 clients. All clients can communicate with server across the network with ls,get and put commands.

    Sourabh Bansal

  14. pravin bhalerao says:

    i have completed client server project using sockets and threads…

  15. anil.rajak says:

    implemented client server project using thread and sockets…

Leave a Reply to satbeer singh Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>