JDK 1.8中Object 的源码如下: 所以Object的所有方法如下: 需要注意的是:其中:这些方法是 被 native 关键字修饰的 备注下:native 关键字主要是说明,这是java对外的方法定义,是与其他语言(C语言)的沟通 官方的解释如下: native关键字说明其修饰的方法是一个原 ...
分类:
其他好文 时间:
2017-08-07 20:46:52
阅读次数:
138
Security Check Problem Description In airport of Bytetown, there are two long queues waiting for security check. Checking a person needs one minute, a ...
分类:
其他好文 时间:
2017-08-05 19:40:57
阅读次数:
164
看这本书之前,对wait和notify认识大概就是,调用wait的线程A堵塞之后,一旦另外有线程调用notify方法。线程A会立马从wait方法处返回。看完这本书后。发现自己的认识实在太肤浅了。。。。。。 线程调用wait()后,会释放已经获得的锁。同一时候进入Waiting状态,而非Blocked ...
分类:
编程语言 时间:
2017-08-05 14:49:08
阅读次数:
137
方法来自:http://stackoverflow.com/questions/42612468/how-can-i-get-more-information-about-waiting-for-target-device-to-come-online 原因:android studio 下载的li ...
分类:
移动开发 时间:
2017-08-02 10:08:40
阅读次数:
308
What is Port Triggering? If you have not read my explanation of port forwarding do so now. You can find it here. Port triggering is pretty simple once ...
分类:
其他好文 时间:
2017-08-02 10:08:15
阅读次数:
234
BarrierSample using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tas ...
分类:
编程语言 时间:
2017-07-31 15:47:34
阅读次数:
137
You are fishing with polar bears Alice and Bob. While waiting for the fish to bite, the polar bears get bored. They come up with a game. First Alice a ...
分类:
其他好文 时间:
2017-07-30 23:56:12
阅读次数:
398
mysql主从复制,经常会遇到错误而导致slave端复制中断,这个时候一般就需要人工干预,跳过错误才能继续跳过错误有两种方式:1.跳过指定数量的事务:mysql>slave stop;mysql>SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1 #跳过一个事务mysql>s ...
分类:
数据库 时间:
2017-07-29 13:56:18
阅读次数:
187
有时候在关闭数据库时,发出shutdown immediate;命令后一直未关闭。查看ALERT日志。在等待一段时间后日志中有提示: SHUTDOWN: waiting for active calls to complete. 原因是有些进程无法被PMON进程清理。导致SHUTDOWN时无法关闭而 ...
分类:
数据库 时间:
2017-07-29 12:43:46
阅读次数:
283
转自http://www.cnblogs.com/LBSer/p/3703967.html 一、问题描述 在发布或重启某线上某服务时(jetty8作为服务器),常常发现有些机器的load会飙到非常高(高达70),并持续较长一段时间(5分钟)后回落(图1),与此同时响应时间曲线(图2)也与load曲线 ...
分类:
其他好文 时间:
2017-07-28 19:28:36
阅读次数:
213