摘要:
原本以为notify 可以直接唤醒处于wait状态的线程 实则不然 package waitNotify; /** <p> * Wait and notify in Java; low-level multithreading methods of the * Object class that a 阅读全文
摘要:
Why do we need URL shortening For example, if we shorten this page through TinyURL: https://www.educative.io/collection/page/5668639101419520/56490502 阅读全文
摘要:
热加载:在不重启jvm前提下 实现类的动态替换 MyObject object = (MyObject) myClassReloadingFactory.newInstance("com.jenkov.MyObject"); Remember, a class can only be loaded 阅读全文
摘要:
Builder pattern vs Constructor vs Setter You could have built an object with this: // Example 1 new FlyingMachine("Boeing 787", 2, false); Or this: // 阅读全文
摘要:
Each object is associated with a monitor. A monitor is locked if and only if it has an owner. The thread that executes monitorenter attempts to gain o 阅读全文
摘要:
The Garbage-First (G1) collector is a server-style garbage collector, targeted for multi-processor machines with large memories. It meets garbage coll 阅读全文
摘要:
k-means是一种非监督 (从下图 0 当中我们可以看到训练数据并没有标签标注类别)的聚类算法: K-Means clustering intends to partition n objects into k clusters in which each object belongs to th 阅读全文
摘要:
Suppose a user visits http://www.example.com and the page attempts a cross-origin request to fetch the user's data from http://service.example.com. A 阅读全文