Question on bounded buffer
I am new to this forum and would love to really start programming in Java.
Am taking a class in concurrent computing and it is really difficult to understand as I don't have any programming background.
I would really use your help on this.
Secondly I was given an assignment which goes like this
Using pthreads, implement a bounded buffer. Use condition variables for full and empty and a lock on the entire buffer (and our condition variables). Each producer will take the string "Now is the time for all good people to come to the aid of their country" and write it to the shared buffer, one character at a time. Your consumer will read a character from the buffer and write it standard output (one at a time). Be careful: the consumer must finish when all of the producers are done. How can the consumer know when a producer is finished?
Please I would like someone to help me with is programming.
Re: Question on bounded buffer
Do you have any specific questions about your assignment?
Please post your code and any questions about problems you are having.