Is the Barrier in Java: memory Barrier for single-thread operations or different thread operations?

https://www.jianshu.com/p/2ab.

for example, this sentence

LoadLoad Barrier: for such a statement, Load1; LoadLoad; Load2, ensures that the data to be read by Load1 is read before the data to be read by Load2 and subsequent read operations is accessed.

< hr >

where are Load1 and Load2 in the same thread, or can they be in different threads?

and why is StoreLoad Barrier a universal Barrier? " For such a statement Store1; StoreLoad; Load2, ensures that Store1 writes are visible to all processors before Load2 and all subsequent reads are performed. "how does this performance have the other three Barrier functions?


can be in the same thread or multiple threads. Memory Barrier is actually a concept that flushes the cache before reading or after writing, which is not a difficult concept to understand.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3146c-2bd99.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3146c-2bd99.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?