我的環境:OS:Ubuntu 12.10 & MIUI V5手機:米1android開發真機調試時,運行sudo ./adb devices 時,若有如下輸出: List of devices attached ???????????? no permissions 解決辦法:lsusb以下是我的輸出(當前連的是小米手機)Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 004
來自:《Java Performance》第3章 JVM OverviewThe HotSpot VM’s implementation of the JNI_CreateJavaVM method performs the following sequence of operations when it is called during the launch of the HotSpot VM.1. Ensure no two threads call this method at the
CAS(Compare and Swap)是個原子操作。拿到一個新值後,CAS將其與記憶體中的值進行比較,若記憶體中的值和這個值不一樣,則將這個值寫入記憶體,否則,不做操作。在Java的 java.util.concurrent.atomic包中對CAS的實現是通過synchronized關鍵字實現的: public final synchronized boolean compareAndSet(long expect, long update) { if (value ==
JDK6 update 7 and onward include a tool called VisualVM. VisualVM is a visual tool with monitoring and profiling capabilities for the JVM. With VisualVM you can:Monitor heap usageMonitor CPU usageMonitor ThreadsInitiate garbage collectionsProfile
轉自:《Java Performance》第三章VM Class LoadingThe Hotspot VM supports class loading as defined by the Java Language Specification, Third Edition, [2] the Java Virtual Machine Specification, Second Edition, [1] and as amended by the updated Java Virtual
摘自:《Java Performance》第三章Internal Class Loading DataThe HotSpot VM maintains three hash tables to track class loading. TheSystemDictionary contains loaded classes, which maps a class name/class loader pair to a klassOop. The SystemDictionary contains
摘自:《Java Performance》第三章為什麼在進行Full GC之前最好進行一次Minor GC?Garbage collecting the young generation space prior to garbage collecting the old generation space usually results in less work for the garbage collector and more objects being garbage collected
在安裝了fcitx後,需要重啟X才會生效。第一種重啟X的方式很簡單,重啟系統就可以了。第二種方式是只重啟X,可以通過快速鍵ctrl + alt + backspace(注意不是空格,而是回刪)使用這個快速鍵之前,首先要啟用。開啟system --> peferences --> keyboard --> layout --> options... -> key sequence to kill the X server,在下面的control + alt +