EmbLogic's Blog

Author Archives: Sandip

Circular Queue Empty and Full condition check algo

1. Create a Queue. 2. In write function if(rp is less than fp) { write; increment rp; if(rp==fp) printf(“queue full”); } 3.In read function if(rp is greater than fp) { read; increment fp; if(rp == fp) printf(“queue empty”); }

Posted in Data Structures with C | Leave a comment

Using sigaction() as a replacement of signal().

Signal is a very important call to handle the behavior of any in coming signals as we know as default signal terminate the process but using signal() we can make the signal do according to need by running a function … Continue reading

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