Java icon indicating copy to clipboard operation
Java copied to clipboard

Threads implementation consumer,producer

Open stomaras opened this issue 8 years ago • 2 comments

I could add a mini project with four Algorithms ,which is a problem of real life

where one # consumer communicate with a # producer for products through one cubbyhole class

the project will have 4 classes and will implemented in java:

  1. class Consumer.java which extend Thread 2)class Producer.java which extend Thread
  2. class Cubbyhole.java through which the two above classes will communicate
  3. the ProducerConsumerTest.java (the main class)

stomaras avatar Mar 26 '18 19:03 stomaras

@stomaras I would suggest rather than going for a project implementation, you can go for an algorithm implementation using the Thread class.The repository's main aim is to keep clean and clear implementations of standard algorithms which can be beneficial to users.

varunu28 avatar Mar 26 '18 20:03 varunu28

done

stomaras avatar Mar 26 '18 20:03 stomaras