EmbLogic's Blog

Author Archives: ashutosh

long time problem solved

devices were not unregisterd but today its done

Posted in Uncategorized | Leave a comment

problem in implementing inet

whenever i execute server every time i need to change the port no. if i don’t change its sayin “bind: address in use”..?????  

Posted in Uncategorized | 1 Comment

to siddarath sir

sir i have implemented single client server model using socket….heading towards multiple client

Posted in Uncategorized | Leave a comment

project status to siddarath sir.

sir i have implement client  server model using message queue

Posted in Uncategorized | Comments Off

semaphore

suppose we define a binary semaphore why its starting value is 1???????  

Posted in Uncategorized | Leave a comment

what’s wrong wid da code??????

#include<stdio.h> int sarr[7]; int i,j=200;top=-1; int push(); int pop(); int display(); int ch; int main() { while(j>1) { printf(“enter case\n”); scanf(“%d”,&ch); switch(ch) { case 0:push(); break; case 1:pop(); break; case 3:j=-1; break; default: printf(“wrong selection”); } } } int push() … Continue reading

Posted in Uncategorized | 2 Comments

what does child_pid>1 and exit(0)mean???

#include<stdio.h> #include<sys/types.h> #include<unistd.h> #include<stdlib.h> int main() { pid_t child_pid; child_pid = fork (); if (child_pid > 0) { }else { exit(0); }

Posted in Uncategorized | Leave a comment

exit code

what does exit code>or < 0,1,-1 mean????

Posted in Uncategorized | Leave a comment

special file directory called/proc???

what are these??/  

Posted in Uncategorized | Leave a comment

what is meaning of “i+1″ in pf statment

#include #define MONTHS 12 int main() { int days[MONTHS]={31,28,[4]=31,30,31,[1]=29}; int i; for(i=0;i<MONTHS;i++) printf("%2d %d\n",i+1,days[i]); return 0; }

Posted in Uncategorized | 1 Comment