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.

relatin b/w fork() &n execl..

Trying to use execl b/w server and processing clients without fork(); O/P–>block on read or write will definitely occur on server-pro_client side……. When we use fork( ) to create a child process the child process does not contain the entire … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC, Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

foreground and background processes

Background Process Unlike with a foreground process, the shell does not have to wait for a background process to end before it can run more processes. Within the limit of the amount of memory available, you can enter many background … Continue reading

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

Process States

  Linux processes generally go through six major states, which are listed below: 1. Running or Runnable ( R ) – A running state has a broader concept here. Running always does not mean utilising the CPU. Even while a … Continue reading

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

about ipc

Ipc mechanisms are mianly 5 types 1.pipes:it is related data only send from one pipe output is giving to another pipe input to share resouses pipe are used drawback:itis only related process only communicated 2.message queues:message queues are un related … Continue reading

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

Creating pipes in C language

Creating “pipelines” with the C programming language can be a bit more involved than the simple shell example . To create a simple pipe with C, we make use of pipe(), open() and close() system calls. However there is a … Continue reading

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

Introducation Interprocess Communication (IPC), Pipes

We have now began to see how multiple processes may be running on a machine and maybe be controlled (spawned by fork() by one of our programs. In numerous applications there is clearly a need for these processes to communicate … Continue reading

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

ZOMBIE PROCESSES

What is a Zombie Process ? It’s a pretty much common question asked in most of the interviews related to Linux, and most of the time people got it confused with Orphan Process. But these two are totally different from … Continue reading

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

FIFO-done with three clients

RCS file: req_client_1.c,v Working file: req_client_1.c head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: sending the data to the server on the request of server’s availability —————————- … Continue reading

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

FORK() call–kernal point of view

when the fork system call is invoked the fork is mappped with the clone system call . the kernel stores the list of processes in circular doubly link list called task list each element in the task_list is a process … Continue reading

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

Sigaction

The sigaction system call is used to change the action taken by process on receipt of a specific signal….It is used in program as: sigaction(int,struct sigaction *new,struct sigaction *old); Various macros used for sigaction are: sigismember sigaddset sigdelset sigemptyset sigfillset … Continue reading

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

MDC using IPC

RCS file: sender.c,v Working file: sender.c head: 1.7 branch: locks: strict akshat: 1.7 access list: symbolic names: keyword substitution: kv total revisions: 7;    selected revisions: 7 description: MDC using IPC. In this project msg send to other process will be … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC, Project 2: Multiple Data Compression and Encryption | Leave a comment

Initialising the Message Queue

The msgget() function initializes a new message queue: int msgget(key_t key, int msgflg) It can also return the message queue ID (msqid) of the queue corresponding to the key argument. The value passed as the msgflg argument must be an … Continue reading

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

Message Queues

Message queue is a circular queue which transfer data by giving a tag,tag is generally the id of the data package to be transfered and it differentiates the data from one another. Message queuing allows distributed applications to communicate asynchronously … Continue reading

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

ipc using fifo

RCS file: fifoserver.c,v 3 Working file: fifoserver.c 4 head: 1.4 5 branch: 6 locks: strict 7         root: 1.4 8 access list: 9 symbolic names: 10 keyword substitution: kv 11 total revisions: 4;     selected revisions: 4 12 description: 13 client1 had … Continue reading

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

ipc using fifo

2 RCS file: fifoserver.c,v 3 Working file: fifoserver.c 4 head: 1.3 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 3;     selected revisions: 3 11 description: 12 client1 had open the … Continue reading

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