Skip to content

Instantly share code, notes, and snippets.

View jainilvachhani's full-sized avatar

Jainil Vachhani jainilvachhani

  • Gujarat, India
View GitHub Profile
class Producers
{
int size = 3;
int pointer = 1;
public void create(int tno, Queue<Integer> buffer) throws InterruptedException
{
Logger logger = LoggerFactory.getLogger(ProducerConsumer.class);
while(true)
{
synchronized(this)