+/EE360P
distributed systems
git clone https://git.julia.blue/+/EE360P
df69975
master
1public class TestAndSet { 2int myValue = -1 ; 3public synchronized int testAndSet (int newValue ) { 4int oldValue =myValue ; 5myValue =newValue ; 6return oldValue ; 7 } 8} 9