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”);
}
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”);
}
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.