SATINDER.EMBDEVELOPER IPC:Message Queues:<sys/msg.h> The basic idea of a message queue is a simple one. Two (or more) processes can exchange information via access to a common system message queue. The sending process places via some (OS) message-passing module a message … Continue reading
SATINDER.EMBDEVELOPER RCS file: ./thread,v Working file: ./thread head: branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 0 description: threads created for two childs =============================================================================
SATINDER.EMBDEVELOPER RCS file: ./makefile,v Working file: ./makefile head: 1.1 branch: locks: strict satinder: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: make file syntax —————————- revision 1.1 locked by: satinder; date: 2014/03/28 11:28:46; … Continue reading
BY:-SATINDER.EMBDEVELOPER Shared Memory: Shared Memory is an efficeint means of passing data between programs. One program will create a memory portion which other processes (if permitted) can access. In the Solaris 2.x operating system, the most efficient way to implement … Continue reading
SATINDER.EMBDEVELOPER LOG FILE:———— RCS file: ./clints.c,v Working file: ./clint1.c head: 1.1 branch: locks: strict satinder: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: SUCESSFULLY DONE FIFO IN IPC WITH MULTIPLE CLIENTS AND PROCESSORS … Continue reading
rlog: RCS/vim,v: No such file or directory RCS file: llrev.c,v Working file: llrev.c head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: this is the program of structure in which … Continue reading
@#include 32 #include 33 #include 34 #include 35 int main() 36 { 37 char arr[55],m[55],ch1,ch2; 38 int fd,j,ret,i=0,len; 39 fd =open(“text”,O_RDONLY); 40 read(fd,&arr,55); 41 len=strlen(arr); 42 printf(“lenght of string is %d\n”,len); 43 if(fd<0) 44 { 45 perror("read"); 46 exit(-1); 47 … Continue reading
RCS file: thread1.c,v 3 Working file: thread1.c 4 head: 1.1 5 branch: 6 locks: strict 7 root: 1.1 8 access list: 9 symbolic names: 10 keyword substitution: kv 11 total revisions: 1; selected revisions: 1 12 description: 13 program of … Continue reading
#include<stdio.h> 2 #include<stdlib.h> 3 #include<pthread.h> 4 5 void* mine_thread(void *arg); 6 void* mine_thread1(void *arg); 7 8 int main() 9 { 10 int ret,set; 11 int z=5,y=6; 12 void * result=malloc(5); 13 void * result1=malloc(5); 14 pthread_t a,b; 15 16 ret=pthread_create(&a,NULL,mine_thread,(void*)&z);//////creating … Continue reading
Implement two threads RCS file: ./threads.c,v Working file: ./threads.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 0 description: implement threds on two child =============================================================================
Faced with the limitations of the shell command expr and other shell constructs, let’s set out to explore the powerful command bc, which stands for bench calculator. This is not just a command or tool, but a complete language in … Continue reading
fifo is just similar to pipe as its second name suggest which is named pipe… In fifo and pipe first difference is pipe cannot be seen in directory but named pipe(fifo ) can be accessed or seen inside the pipe … Continue reading
head 1.3; access; symbols; locks arjun:1.3; strict; comment @ * @; 1.3 date 2014.03.27.06.05.30; author arjun; state Exp; branches; next 1.2; 1.2 date 2014.03.25.08.06.10; author arjun; state Exp; branches; next 1.1; 1.1 date 2014.03.25.05.16.16; author arjun; state Exp; branches; next … Continue reading
Structures in c A structure is a collection of variables under a single name. These variables can be of different types, and each has a name which is used to select it from the structure. A structure is a convenient … Continue reading
RCS file: server.c,v Working file: server.c head: 1.3 branch: locks: strict saurabh: 1.3 access list: symbolic names: keyword substitution: kv total revisions: 3; selected revisions: 3 description: here we are doing a project called ipc ,we have taken a server … Continue reading