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
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
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
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
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
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
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
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
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
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
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
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
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
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
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