Pratyay Dhonddhondpratyay.hashnode.dev·Mar 9, 2024A Busy Wait Loop For The Eye! [compiler Optimization Rant]for(int i = 25; i > 0; i--){ for(int j = 2147483647; j > 0; j--){ // this loop is supposed to busy wait } } I was supposed to implement scheduling and then test which scheduling was better; the one I had written (Pri...11 likes·240 readscompileroptimization
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 31, 2023Are you volatile?The volatile keyword in C is used to inform the compiler that the value of a variable may change at any time, without any action being taken by the code the compiler finds nearby. This is often necessary in embedded systems where certain memory locat...C Programmingvolatile
Udaysinhknowthatstuff.hashnode.dev·Jul 19, 2022Java Multithreading - Atomic, Volatile, Threadlocal, Mutex and SemaphoreThis article covers the most important and distinctive aspects of different concepts in multithreading. Each of the section deserves its own deep dive and there are pages written in reference books on them. Aim is to superficially cover these concept...542 readsmultithreading