Producer-Consumer Problem in Java

Its small program regarding Producer consumer problem in operating system for computational devices.

Download Its Perfect Copy in .txt Format

Instruction to run the below program in windows OS: the program as in bin folder of jdk.
2.compile the program using ” javac “in cmd prompt the file using java command.

INPUT is: :

/* Program starts here: */


4 thoughts on “Producer-Consumer Problem in Java”

  1. In this program simple Multithreding program in java complete Reference is used to much extent, this producer consumer problem is implemented without using any buffer mechanism.
    Its an attempt to accomplish just simple implementation of this problem.
    So I suggest you that you must refer Java complete Reference book,and just take a look at threading concepts and syntax.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s