EmbLogic's Blog

Category Archives: Project 04: FTP based Client Server using Threads and Sockets

The POSIX thread libraries are a standards based thread API for C/C++. It allows one to spawn a new concurrent process flow. It is most effective on multi-processor or multi-core systems where the process flow can be scheduled to run on another processor thus gaining speed through parallel or distributed processing. Threads require less overhead than “forking” or spawning a new process because the system does not initialize a new system virtual memory space and environment for the process. While most effective on a multiprocessor system, gains are also found on uniprocessor systems which exploit latency in I/O and other system functions which may halt process execution. Parallel programming technologies such as MPI and PVM are used in a distributed computing environment while threads are limited to a single computer system. All threads within a process share the same address space. A thread is spawned by defining a function and its arguments which will be processed in the thread. The purpose of using the POSIX thread library in your software is to execute software faster.
Sockets are the fundamental technology for programming software to communicate on TCP/IP networks. A socket provides a bidirectional communication endpoint for sending and receiving data with another socket. Socket connections normally run between two different computers on a LAN or across the Internet, but they can also be used for interprocess communication on a single computer.

E30 : Taruna

RCS file: server.c,v Working file: server.c head: 1.3 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 3;     selected revisions: 3 description: This is the server to handle requests from requesting client. Initially , it is able … Continue reading

Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

E 30: Vikram Sharma

——————————————- revision 1.5 date: 2013/06/26 14:31:12;  author: vikram;  state: Exp;  lines: +27 -12 300 Clients Served Successfully. with NO changes. fro version 1.4. —————————-

Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

E30: Om Parkash::project 4(server client project using FIFO’s & Threads)

RCS file: server.c,v Working file: server.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: srvr working for upto 60 clients using fifo’s & threads…. —————————- revision 1.1 date: 2013/06/26 … Continue reading

Posted in Project 04: FTP based Client Server using Threads and Sockets | Leave a comment

E 30 Avtar Singh

RCS file: server.c,v Working file: server.c head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2;    selected revisions: 2 description: server with one processing client to increment received data by 1. in this threads are … Continue reading

Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

E 30: Vikram Sharma

RCS file: ./server.c,v Working file: server.c head: 1.4 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 4;    selected revisions: 4 description: Initial server.c But some BUGS. —————————- revision 1.4 date: 2013/06/26 03:13:53;  author: vikram;  state: Exp;  … Continue reading

Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

E 30: JATINDER KUMAR

keyword substitution: kv total revisions: 5; selected revisions: 5 description: Intially i creted a server. then i use mkfifo and access to use the fifo created by client. further i opened same fifo in the O_RDONLY mode and was able … Continue reading

Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

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 … Continue reading

Posted in Project 04: FTP based Client Server using Threads and Sockets | 15 Comments