01 2017 档案

摘要:AtomicInteger可以看做Integer类的原子操作工具类。在java.util.concurrent.atomic包下,在一些使用场合下可以取代加锁操作提高并发性。接下来就从几个方面来介绍: 1.原子性和CAS。 2.CPU底层实现原理。 3.atomic包介绍。 4.源码分析。 原子性和 阅读全文
posted @ 2017-01-22 19:37 Pickle 阅读(1283) 评论(0) 推荐(3) 编辑
摘要:Given a binary array, find the maximum number of consecutive 1s in this array. 阅读全文
posted @ 2017-01-20 11:31 Pickle 阅读(225) 评论(0) 推荐(0) 编辑
摘要:Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. 阅读全文
posted @ 2017-01-20 11:15 Pickle 阅读(306) 评论(0) 推荐(0) 编辑
摘要:The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文
posted @ 2017-01-20 10:31 Pickle 阅读(220) 评论(0) 推荐(0) 编辑
摘要:Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2017-01-20 10:14 Pickle 阅读(285) 评论(0) 推荐(0) 编辑
摘要:Integer是平时开发中最常用的类之一,但是如果没有研究过源码很多特性和坑可能就不知道,下面深入源码来分析一下Integer的设计和实现。 Integer: 继承结构: -java.lang.Object --java.lang.Number java.lang.Integer 其中父类Numbe 阅读全文
posted @ 2017-01-19 19:02 Pickle 阅读(3882) 评论(1) 推荐(5) 编辑
摘要:命令行操作: -help 功能:输出这个命令参数手册 -ls 功能:显示目录信息 示例: hadoop fs -ls hdfs://hadoop-server01:9000/ 备注:这些参数中,所有的hdfs路径都可以简写 -->hadoop fs -ls / 等同于上一条命令的效果 -mkdir 阅读全文
posted @ 2017-01-12 17:31 Pickle 阅读(5465) 评论(1) 推荐(2) 编辑
摘要:深入理解一个技术的工作机制是灵活运用和快速解决问题的根本方法,也是唯一途径。对于HDFS来说除了要明白它的应用场景和用法以及通用分布式架构之外更重要的是理解关键步骤的原理和实现细节。在看这篇博文之前需要对HDFS以及分布式系统有一些了解。请参考这篇博客。本篇博文首先对HDFS的重要特性和使用场景做一 阅读全文
posted @ 2017-01-11 08:59 Pickle 阅读(26571) 评论(4) 推荐(31) 编辑
摘要:要想深入学习HDFS就要先了解其设计思想和架构,这样才能继续深入使用HDFS或者深入研究源代码。懂得了“所以然”才能在实际使用中灵活运用、快速解决遇到的问题。下面这篇博文我们就先从一般的分布式谈起,在宏观上逐步去探究HDFS的设计思想和架构实现。 一.先谈分布式 分布式是近几年非常火的技术概念,无论 阅读全文
posted @ 2017-01-10 11:35 Pickle 阅读(5817) 评论(1) 推荐(4) 编辑

点击右上角即可分享
微信分享提示