[ Back to the overview Matrix ]

Test case : Producer Consumer

Write an application that creates two or more distinct threads of execution. One thread will produce
data. The other thread will consume the data. The two threads must communicate with each other
using some mechanism to prevent race conditions between the producer and the consumer.

This should be a console application.

What is tested: Language support for concurrent execution and data synchronization.

Contributed by James S. Rogers, jimmaureenrogers at worldnet.att.net