ProConUnprotected: Initial commit

This commit is contained in:
2025-03-19 20:42:54 +01:00
parent 519152a7b9
commit 717dd7835e
9 changed files with 121 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
public class UnsynchronizedBuffer implements Buffer {
private int buffer = -1;
public void set( int value ) {
System.err.println( Thread.currentThread().getName() + " writes " + value);
buffer = value;
}
public int get() {
System.err.println( Thread.currentThread().getName() + " reads " + buffer);
return buffer;
}
}