add concurrent hashmap
[model-checker-benchmarks.git] / concurrent-hashmap / note.txt
diff --git a/concurrent-hashmap/note.txt b/concurrent-hashmap/note.txt
new file mode 100644 (file)
index 0000000..0056dcd
--- /dev/null
@@ -0,0 +1,10 @@
+#Non-SC:
+The following case can be non-SC.
+
+Thrd1                                          Thrd2
+put(k1, v1); // a                      put(k2, v2); // c
+get(k2); // b                          get(k1); // d
+
+When b and d both read the old head of the list (and they later grab the lock,
+making it the interface SC), it's non-SC because neither reads the updated
+value.