With great power often comes great confusion.
Dan AllenStichwörter: power confusion java
Near below peak of mount Merbabu in Java,
there is a forest known as the devil market.
I had been there once. And when you are there,
you will sense the crowd, voices of nothingness.
Your mind will say it is just accustics effect of the nature,
but your heart will tell you something totally different.
Stichwörter: nothingness java voices accoustic devil-market merbabu
Orang Jawa sekarang sudah menjadi orang Indonesia yang kering!" - Jacques Cherer
Ayu UtamiStichwörter: java jawa sindiran
The apprentice avoids all use of Java classes. The journeyman embraces Java classes. The master knows which classes to embrace and which to avoid.
Michael FogusStichwörter: mantra java clojure java-next jvm
The possibility of incorrect results in the presence of unlucky timing is so important in concurrent programming that it has a name: a race condition. A race condition occurs when the correctness of a computation depends on the relative timing or interleaving of multiple threads by the runtime; in other words, when getting the right answer relies on lucky timing.
Brian GoetzStichwörter: programming java concurrency
When a field is declared volatile, the compiler and runtime are put on notice that this variable is shared and that operations on it should not be reordered with other memory operations. Volatile variables are not cached in registers or in caches where they are hidden from other processors, so a read of a volatile variable always returns the most recent write by any thread.
Brian GoetzStichwörter: programming java concurrency
Debugging tip: For server applications, be sure to always specify the -server JVM command line switch when invoking the JVM, even for development and testing. The server JVM performs more optimization than the client JVM, such as hoisting variables out of a loop that are not modified in the loop; code that might appear to work in the development environment (client JVM) can break in the deployment environment (server JVM).
Brian GoetzStichwörter: programming java concurrency
From the perspective of a class C, an alien method is one whose behavior is not fully specified by C. This includes methods in other classes as well as overrideable methods (neither private nor final) in C itself. Passing an object to an alien method must also be considered publishing that object. Since you can’t know what code will actually be invoked, you don’t know that the alien method won’t publish the object or retain a reference to it that might later be used from another thread.
Brian GoetzStichwörter: programming java concurrency
Once an object escapes, you have to assume that another class or thread may, maliciously or carelessly, misuse it. This is a compelling reason to use encapsulation: it makes it practical to analyze programs for correctness and harder to violate design constraints accidentally.
Brian GoetzStichwörter: programming java concurrency
Accessing shared, mutable data requires using synchronization; one way to avoid this requirement is to not share. If data is only accessed from a single thread, no synchronization is needed. This technique, thread confinement, is one of the simplest ways to achieve thread safety. When an object is confined to a thread, such usage is automatically thread-safe even if the confined object itself is not.
Brian GoetzStichwörter: programming java concurrency
Seite 1 von 2.
nächste letzte »
Data privacy
Imprint
Contact
Diese Website verwendet Cookies, um Ihnen die bestmögliche Funktionalität bieten zu können.