Java
  • Synchronization
  • Synchronized Methods
    • First, it is not possible for two invocations of synchronized methods on the same object to interleave. When one thread is executing a synchronized method for an object, all other threads that invoke synchronized methods for the same object block (suspend execution) until the first thread is done with the object.
    • Second, when a synchronized method exits, it automatically establishes a happens-before relationship with any subsequent invocation of a synchronized method for the same object. This guarantees that changes to the state of the object are visible to all threads.
  • J2ME
  • CDC(Connected Device Configuration)
    • Classical javaVM
  • CLDC(Connected, Limited Device Configuration)
    • KVM
  • Installation
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
sudo update-java-alternatives -s java-6-sun
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License