Linux
Linux
参考:EFI system partition
how do i install ubuntu alongside a pre installed windows with uefi
内存空间查看
- df: df -lh
- fdisk: fdisk -l
- cfdisk
参考:EFI system partition
how do i install ubuntu alongside a pre installed windows with uefi
简述,具体参见
1 | Interface: List(public interface List<E> extends Collection<E> ) |
1 | public final class String |
java 8: rt.jar\sun.misc
java 9: jdk.unsupported\sun.misc java.base\jdk.internal.misc
1 | public abstract class AsyncTask<Params, Progress, Result> {...} |
AsyncTask is designed to be a helper class around {@link Thread} and {@link Handler} and does not constitute a generic threading framework.
AsyncTasks should ideally be used for short operations (a few seconds at the most.)
If you need to keep threads running for long periods of time, it is highly recommended you use the various APIs provided by the java.util.concurrent package such as {@link Executor}, {@link ThreadPoolExecutor} and {@link FutureTask}.
类加载器
file: ClassLoader.txt
参考:探秘Java9之类加载
code: java [1.8]
1 | static class AppClassLoader extends URLClassLoader |
1 | <tt>Class</tt> objects for array classes are not created by class loaders, but are created automatically as required by the Java runtime. |
Bootstrap ClassLoader 最顶层的加载类,主要加载核心类库,%JRE_HOME%\lib下的rt.jar、resources.jar、charsets.jar和class等。另外需要注意的是可以通过启动jvm时指定-Xbootclasspath和路径来改变Bootstrap ClassLoader的加载目录。比如java -Xbootclasspath/a:path被指定的文件追加到默认的bootstrap路径中。我们可以打开我的电脑,在上面的目录下查看,看看这些jar包是不是存在于这个目录。
Extention ClassLoader 扩展的类加载器,加载目录%JRE_HOME%\lib\ext目录下的jar包和class文件。还可以加载-D java.ext.dirs选项指定的目录。
AppClass Loader ClassLoader.getSystemClassLoader() 也称为SystemAppClass 加载当前应用的classpath的所有类。
ExtClassLoader与AppClassLoader代码见:lib\rt.jar!\sun\misc\Launcher.class
Hash,就是把任意长度的输入(又叫做预映射pre-image)通过散列算法变换成固定长度的输出,该输出就是散列值。这种转换是一种压缩映射,也就是,散列值的空间通常远小于输入的空间。简单的说就是一种将任意长度的消息压缩到某一固定长度的消息摘要的函数。