Emails us- Call US

Assignment help 7736

The system used a shared buffer that would accept blocks of characters from a measurement process P1 and forward blocks of data to the output process, P2.  The designer has written the following routines, one for P1 and one for P2.

      full = 0

      max = buffer size

          p1Generate( )                                          p2Transmit( )

      {                                                           {





while (full < max)                                   while (full > 0)

{                                                           {

      buffer(head) = anItem;                           anItem  = buffer(head);

      (head = head + 1) mod max;                  (head = head – 1) mod max;

      full++ ;                                                  full–;

}                                                           }

            }                                                           }

Occasionally the system either looses data or forwards garbage data.

Can you explain why?

Please propose (in detail) a way to fix the problem.  Modify the existing code as necessary.

Please show how your design solves the problem.


15% off for this assignment.

Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!

Why US?

100% Confidentiality

Information about customers is confidential and never disclosed to third parties.

Timely Delivery

No missed deadlines – 97% of assignments are completed in time.

Original Writing

We complete all papers from scratch. You can get a plagiarism report.

Money Back

If you are convinced that our writer has not followed your requirements, feel free to ask for a refund.