EmbLogic's Blog

Category Archives: Project 03: Client Server Communication using Linux and IPC

We need to creat an Inter Process Communication based Client-Server setup. There should be a Server program, Some clients would send requests to the server and the server would further find the appropriate client to process the request. The server then invokes the new client so as to process the request. The new client should then rend the result back to the server , which then sends it forward to the requesting client.

Implementation of Client/Server application to compute SUM using IPC mechanism shared memory.

RCS file: client.c,v Working file: client.c head: 1.4 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 4;    selected revisions: 4 description: Client/Server program where client provides input to server via shared memory and server provides the … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

Program to show how parent and child processes communicate via a shared memory IPC mechanism

RCS file: simple_shared.c,v Working file: simple_shared.c head: 1.11 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 11;    selected revisions: 11 description: Implementation of IPC mechanism:Shared memory. Child process is created using fork(). Shared memory segment is … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

Implementation of signal and wait operation on a semaphore

RCS file: signalandwait.c,v Working file: signalandwait.c head: 1.6 branch: locks: strict root: 1.6 access list: symbolic names: keyword substitution: kv total revisions: 6;    selected revisions: 6 description: Implementing wait and signal operation in a program. —————————- revision 1.6    locked by: … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC, Uncategorized | Leave a comment

Getting,initializing,retrieving and releasing the semaphore..

RCS file: semaphore_example.c,v Working file: semaphore_example.c head: 1.5 branch: locks: strict root: 1.5 access list: symbolic names: keyword substitution: kv total revisions: 5;    selected revisions: 5 description: This is the main program to understand the working of semaphore. Initially only … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

IPC using message queues

Log File For Server: head    1.2; access; symbols; locks root:1.2; strict; comment    @ * @; 1.2 date    2013.12.24.10.09.27;    author root;    state Exp; branches; next    1.1; 1.1 date    2013.12.24.09.32.25;    author root;    state Exp; branches; next    ; desc @This is the main … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

Server-Client Communication using Message Queues Completed

Log File For Server: head    1.2; access; symbols; locks root:1.2; strict; comment    @ * @; 1.2 date    2013.12.24.10.09.27;    author root;    state Exp; branches; next    1.1; 1.1 date    2013.12.24.09.32.25;    author root;    state Exp; branches; next    ; desc @This is the main … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Tagged , | Leave a comment

IPCs

INTER-PROCESS COMMNICATION What is Inter-process Communication? Inter-process communication as the name suggests is the exchange of information between two dependent /independent processes.   Why it is required? There are cases when processes may need to work together;for example a process … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

Inter process communication using named pipes(FIFO)

Inter process communication using named pipes(FIFO) Earlier we saw the how to create pipes for communication between processes in linux. One of the major disadvantage of pipes is that the they can not be accesed using their names by any … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

ipc project :- 3

Fork (system call) fork is an operation whereby a process creates a copy of itself. It is usually a system call, implemented in the kernal. Fork is the primary (and historically, only) method of process creation on Unix-like operating systems.fork() … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

Article on Signals:

SIGNALS: Signals were introduced by the first Unix systems to simplify interprocess communication.The kernel also uses them to notify processes of system events. In contrast to interrupts and exceptions, most signals are visible to User Mode processes. Also signals can … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

IPC

Client Server using IPC   IPC stands for inter process communation and with help of this mechanism server can communicate with their appropriate clients. There are four types of IPC 1)Pipe 2)fifo 3)message queues 4)shared memory   pipe-It is mechanism … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

PROJECT 3 : A Linux System Programming using IPC.

A Linux System Programming using IPC. Many times for any client-server set-up to work efficiently, there arises a problem to share data or resources among various processes that are running. IPC involves many communication and synchronization techniques used to achieve … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

Interprocess Communication

“A Process is an address space with one or more threads executing within that address space and required system resources for those threads.” IPC (Inter Process Communicaton) is a set of methods for the exchange of data between multiple threads … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

Interprocess communication

Interprocess Communication Interprocess communication is a technique used for exchange of data between two process and threads.The process can be run on same computer or via internet.IPC  is a mechanism through which two process communicates.Signals are used in IPC to … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

Client Server Communication using Linux and IPC

Project : Client Server Communication using Linux and IPC Overview : Hi all This project is regarding Inter-process Communication techniques in this project , Before explaining IPC i must let you know why we need these type of techniques . … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment