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”); }
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