SimpleProducerConsumer Sample

Description

This sample builds two applications:

Source Files

File Description
SimpleIPCConsumer.c

The main source file for Consumer.

SimpleIPCProducer.c The main source file for Producer.
SimpleIPCConsumer.h

The header file for Consumer.

SimpleIPCProducer.h The header file for Producer.
ProducerConsumer.h A header file that is shared between the two applications.

Building the Sample

  1. Open a project file in the corresponding Visual Studio version you use for development.
  2. Build the project.

Running the SimpleProducerConsumer Sample

To run the sample:

  1. Boot the system in its Windows Boot Configuration.
  2. Navigate to <InstallDrive>\MaxRT\eRTOS\.
  3. Right-click AutoStart.bat and select Edit.
  4. Find or write the Run command(s) for SimpleProducerConsumer.

Note: For more information on Run commands, see Run.

  1. If using pre-written Run commands, remove the comment characters (: :) to enable the command(s).
  2. Re-boot the system from a GRUB bootable USB drive or hard drive.
  3. Select the desired GRUB boot configuration. See GRUB Boot Configurations for more information.
  4. Upon system boot, the sample(s) will run automatically after the eRTOS Kernel startup.
  5. Sample output will be displayed on the screen when the program ends.
  6. Re-boot the system in its Windows Boot Configuration.
  7. Navigate to <InstallDrive>\MaxRT\eRTOS\.
  8. Open the RtLogFile.txt log file to view sample output.

APIs Referenced