|
Scribble Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cs101.util.semaphore.PNCBuffer
cs101.util.PNCBuffer implements a producer/consumer synchronized buffer.
Interface is pncBuffer.putWord(String), pncBuffer.getNextWord().
Copyright 1996 Massachusetts Institute of Technology
BS
Constructor Summary | |
PNCBuffer()
|
Method Summary | |
java.lang.String |
getNextWord()
(Safely) Consumes the word held in the PNCBuffer. |
void |
putWord(java.lang.String newWord)
(Safely) Puts a word into the PNCBuffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PNCBuffer()
Method Detail |
public void putWord(java.lang.String newWord)
newWord
- the word to be inserted.getNextWord()
,
BS
public java.lang.String getNextWord()
putWord(java.lang.String)
,
BS
|
Scribble Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |