https://gyeongminsu.github.io/posts/Mutex&Peterson&Semaphore&Memorydefense/