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 … Continue reading
RCS file: ./thread.c,v Working file: ./thread.c head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: creating multiple threads using pthread_create() joining the created multiple threads using pthread_join() printing the no … Continue reading
RCS file: ./thread.c,v Working file: ./thread.c head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: pthread_create is used to create the thread pthread_exit() is used in the thread created by … Continue reading
Difference Between threads and processes Following are some of the major differences between the thread and the processes : Processes do not share their address space while threads executing under same process share the address space. From the above point … Continue reading
A socket is one end-point of a two-way communication link between two programs running on the network. A server application normally listens to a specific port waiting for connection requests from a client. When a connection request arrives, the client … Continue reading
RCS file: ipc_thrdsrvr.c,v Working file: ipc_thrdsrvr.c head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: —————————- revision 1.2 date: 2014/03/31 11:58:38; author: root; state: Exp; lines: +10 -10 implemented threads … Continue reading
PROJECT TITLE : FTP based Client Server project using sockets and threads: Abstract: File Transfer Protocol is a standard network protocol used to transfer files from one host to another host over a TCP based network such as internet. This … Continue reading
RCS file: server.c,v Working file: server.c head: 1.12 branch: locks: strict root: 1.12 access list: symbolic names: keyword substitution: kv total revisions: 12; selected revisions: 12 description: Code to demonstrate how a server accepts connections from a client on the … Continue reading
RCS file: server.c,v Working file: server.c head: 1.15 branch: locks: strict root: 1.15 access list: symbolic names: keyword substitution: kv total revisions: 15; selected revisions: 15 description: Code to demonstrate how a server accepts connections from a client on the … Continue reading
RCS file: server.c,v Working file: server.c head: 1.6 branch: locks: strict root: 1.6 access list: symbolic names: keyword substitution: kv total revisions: 6; selected revisions: 6 description: Program to demonstrate how a connection oriented server creates a IP socket to … Continue reading
RCS file: simple_c_s_app.c,v Working file: simple_c_s_app.c head: 1.10 branch: locks: strict root: 1.10 access list: symbolic names: keyword substitution: kv total revisions: 10; selected revisions: 10 description: A simple client/server application in which a server waits for client requests. —————————- … Continue reading
RCS file: simple_wait_and_post.c,v Working file: simple_wait_and_post.c head: 1.11 branch: locks: strict root: 1.11 access list: symbolic names: keyword substitution: kv total revisions: 11; selected revisions: 11 description: Code to demonstrate the working of sem_wait and sem_post. —————————- revision 1.11 locked … Continue reading
RCS file: sum_of_n_natural_number.c,v Working file: sum_of_n_natural_number.c head: 1.7 branch: locks: strict root: 1.7 access list: symbolic names: keyword substitution: kv total revisions: 7; selected revisions: 7 description: Code to demonstrate the sum of first n-natural numbers using Pthreads. —————————- revision … Continue reading
RCS file: N_threads.c,v Working file: N_threads.c head: 1.10 branch: locks: strict root: 1.10 access list: symbolic names: keyword substitution: kv total revisions: 10; selected revisions: 10 description: Code that will create N number of threads specified in the command line,each … Continue reading
RCS file: passing_string.c,v Working file: passing_string.c head: 1.4 branch: locks: strict root: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: Code to pass string to a thread. —————————- revision 1.4 locked by: root; … Continue reading