13- The volatile Keyword
6:33
2 സ്പീക്കറുകള്
2 അദ്ധ്യായങ്ങള്
175 ഗ്രൂപ്പുകള്
സ്പീക്കറുകള്
അദ്ധ്യായങ്ങള്
-
0:03അദ്ധ്യായം 1: In Java, we have another tool for writing thread -safe code, but without the overhead of synchronization. 301s · Speaker 2
In Java, we have another tool for writing thread -safe code, but without the overhead of synchronization. It's the volatile keyword. It solves the visibility problem, but not the race condition. So it doesn't prevent two threads simultaneou…
-
5:05
Now, we have two threads running by two different CPU cores. Each CPU has a cache, which is a small amount of memory available locally in that CPU. Reading the data from the cache is faster because the data is closer to the CPU. So it doesn…