ProConUnprotected: Initial commit
This commit is contained in:
15
Technology/ProConUnprotected/src/SharedBufferTest.java
Normal file
15
Technology/ProConUnprotected/src/SharedBufferTest.java
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
public class SharedBufferTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
Buffer sharedLocation = new UnsynchronizedBuffer();
|
||||
|
||||
Producer producer = new Producer( sharedLocation);
|
||||
Consumer consumer = new Consumer( sharedLocation);
|
||||
|
||||
producer.start();
|
||||
consumer.start();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user