ada Implementing the producer-consumer pattern

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

A demonstration of how the producer-consumer pattern is implemented in Ada.

Syntax

  • function Scalar'Image (Argument : Scalar'Base) return String;
  • task Task_Name;
  • task Task_Name is Entries end;
  • task body Task_Name is Declarations begin Code end;
  • entry Entry_Name;
  • accept Entry_Name;
  • exit;

Remarks

The examples should all ensure proper task termination.



Got any ada Question?