EmbLogic's Blog

Author Archives: Jyoti Singh

client-server program using AF_UNIX

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: This is the base header file for the Project —————————- revision 1.1 locked … Continue reading

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

Multiple Client server program using Thread,Pipes and signals

RCS file: ./header.h,v Working file: ./header.h head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: This is the header file —————————- revision 1.1 locked by: root; date: 2015/08/11 … Continue reading

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

Multiple Client-server Program using threads and Message Queue

RCS file: ./header.h,v Working file: ./header.h head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: This is the Base header file. —————————- revision 1.1 locked by: root; date: … Continue reading

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

Multiple client server program using Shared Memory

RCS file: ./header.h,v Working file: ./header.h head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: This is Base Header file for Multiple client server program using shared memory. … Continue reading

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

Write a Program to Subtract two matrix?

code : #include<stdio.h> #include<stdlib.h> int main() { system(“clear”); int r,c,i,j,a[10][10],b[10][10],d[10][10]; printf(“Enter Row\n”); scanf(“%d”,&r); printf(“Enter Column\n”); scanf(“%d”,&c); printf(“Enter Element of Matrix1\n”); for(i=0;i<r;i++) { for(j=0;j<c;j++) { scanf(“%d”,&a[i][j]); } } printf(“Enter Element of Matrix2\n”); for(i=0;i<r;i++) { for(j=0;j<c;j++) { scanf(“%d”,&b[i][j]); } } for(i=0;i<r;i++) { … Continue reading

Posted in Data Structures with C | Leave a comment

Multiple Client-server Program using Message Queue?

RCS file: ./header.h,v Working file: ./header.h head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: This is Base Header file for this project. —————————- revision 1.2 locked by: … Continue reading

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

Multiple Client-server Program using FIFO and Semaphore

RCS file: ./header.h,v Working file: ./header.h head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: This is the base header file for this multiple client server program. where … Continue reading

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

Multi-Tasking Operating System

Multitasking OS is the one that can simultaneously interleave execution of more then one process. They are of two types : >>cooperative multitasking : in this process don’t stop running until it voluntary decide to do so . This is … Continue reading

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

Multiple Client – server Program using PIPE and Signal.

PIPE to mean connecting a data flow from one process to another.PIPE is passed (a pointer to) an array of two integer file descriptors.It fills the array with two new file descriptors and returns a zero. On failure, it returns … Continue reading

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

Multiple Data Compression Technique

Multiple Data Compression is an iterative technique to compress the text data. RCS file: ./header.h,v Working file: ./header.h head: 1.4 branch: locks: strict root: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: This … Continue reading

Posted in Data Structures with C, Project 2: Multiple Data Compression and Encryption | Leave a comment

Write a program to find particular no. is power of two or not?

CODE: #include<stdio.h> int main() { int n; printf(“Enter a value\n”); scanf(“%d”,&n); if((n &(n-1))==0) printf(“no. is power of 2\n”); else printf(“no. is not power of 2\n”); return 0; }

Posted in Data Structures with C | Leave a comment

Write a program to reverse a number?

CODE: #include<stdio.h> int main() { int n,r=0,num; printf(“Enter a number:\n”); scanf(“%d”,&n); num=n; while(n!=0) { r=r*10; r=r+n%10; n=n/10; } printf(“Reverse number is %d\n”,r); if(num==r) printf(“Palindrome number\n”); else printf(“Not a Palindrome\n”); return 0; }

Posted in Data Structures with C | Leave a comment

Write a program to print Diamond Pattern?

CODE: #include<stdio.h> int main() { int i,j,k,n,space,temp; printf(“enter value of n\n”); scanf(“%d”,&n); temp=n; for(i=1;i<=n;i++) { for(j=i;j<n;j++) { printf(” “); } for(k=1;k<(2*i);k++) { printf(“*”); } printf(“\n”); } temp=1; for(i=n-1;i>=1;i–) { for(j=1;j<=temp;j++) { printf(” “); } temp++; for(k=1;k<(i*2);k++) { printf(“*”); } printf(“\n”); … Continue reading

Posted in Data Structures with C | Leave a comment

Write a program to find the range of data types?

CODE: #include<stdio.h> #include<limits.h> #include<float.h> int main() { printf(“Range of integer value:%d to %d \n”,INT_MIN,INT_MAX); printf(“Range of char value:%d to %d \n”,CHAR_MIN,CHAR_MAX); printf(“Range of float value:%e to %e \n”,FLT_MIN,FLT_MAX); printf(“Range of double value:%e to %e \n”,DBL_MIN,DBL_MAX); printf(“Range of long double value:%e … Continue reading

Posted in Data Structures with C | Leave a comment

Write a program to find LCM and HCF of three number?

CODE: #include<stdio.h> int main() { int a,b,c,x,y,z,lcm,hcf,r,lcm1; printf(“Enter three number\n”); scanf(“%d%d%d”,&x,&y,&z); a=x; b=y; c=z; while(x!=0) { r=y%x; y=x; x=r; } lcm=(a*b)/y; while(y!=0) { r=z%y; z=y; y=r; } hcf=z; lcm1=(lcm*c)/hcf; printf(“LCM:%d”,lcm1); printf(“HCF:%d”,hcf); return 0; }

Posted in Data Structures with C | Leave a comment