自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (10)
  • 收藏
  • 关注

原创 Java并发编程3-等待、通知和中断

J:hi,T。 T:hi,J。 J:今天打算给大家介绍点什么呢? T:今天我打算介绍一下Java并发编程中的等待、通知和中断机制。 J:哦,听起来好高深。 T:呵呵,我先做一些简单介绍吧。在Java中,每一个对象都有一个等待集合,当线程执行对象的wait操作时,线程将被放入到对象的等待集合中;当线程执行对象的notify操作时,对象等待集合中的线程将被唤醒;当线程的interrupt操作

2014-03-28 14:54:31 2203 12

原创 Java并发编程2-同步

上一篇文章中介绍了原子性和可见性,让我们知道了为什么需要使用同步,这篇文章将介绍怎么在Java中使用同步。首先从Java中的同步机制原理开始,然后介绍同步可能导致的风险,最后介绍Java中常见的同步方法。 Java的同步机制原理 Java中的每个Object都对应到一个监视器,Java中的同步就是使用监视器来实现的,在一个时间只能有一个线程能够获取监视器的锁,而任何其它想要获取同一个监视器锁的

2014-03-27 10:57:44 1988 2

原创 Java并发编程1-原子性和可见性

T:hi,J。 J:hi,T。最近忙什么呢? T:我最近在研究Java并发编程,刚学习了两个重要的特性:原子性和可见性。 J:哦,能解释一下吗? T:你知道什么是原子吗? J:这个我知道,原子就是构成物质的基本单位。 T:对,在编程中,原子就是指不可再分的操作,原子性就是指一段代码象原子一样不可再分,一次只能有一个线程执行这段代码,即代码的执行是互斥的。 J:我明白了,那可见性呢?

2014-03-26 10:42:55 3580 1

原创 ContiPerf介绍

ContiPerf是一个轻量级的测试工具,基于JUnit 4 开发,可用于效率测试等。 1、ContiPerf介绍 可以指定在线程数量和执行次数,通过限制最大时间和平均执行时间来进行效率测试,一个简单的例子如下: public class ContiPerfTest { @Rule public ContiPerfRule i = new ContiPerfRule(); @Test

2014-03-25 14:30:47 5973

hadoop-part3

The Apache Hadoop software library is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage. Rather than rely on hardware to deliver high-availability, the library itself is designed to detect and handle failures at the application layer, so delivering a highly-available service on top of a cluster of computers, each of which may be prone to failures.

2015-08-04

hadoop-part2

The Apache Hadoop software library is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage. Rather than rely on hardware to deliver high-availability, the library itself is designed to detect and handle failures at the application layer, so delivering a highly-available service on top of a cluster of computers, each of which may be prone to failures.

2015-08-04

hadoop-part1

hadoop-2.7.1 The Apache Hadoop software library is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage. Rather than rely on hardware to deliver high-availability, the library itself is designed to detect and handle failures at the application layer, so delivering a highly-available service on top of a cluster of computers, each of which may be prone to failures.

2015-08-04

PersistentIdealHashTree-Java实现

PersistentIdealHashTree的Java实现

2014-04-14

linux教学课件:Advanced Programming in the Linux Environment

linux教学课件:Advanced Programming in the Linux Environment

2009-11-09

深入java虚拟机深入java虚拟机

深入java虚拟机深入java虚拟机深入java虚拟机深入java虚拟机

2009-10-24

linux一句话精彩问答

linux一句话精彩问答linux一句话精彩问答linux一句话精彩问答

2009-06-09

Linux内核结构与进程管理

Linux内核结构与进程管理Linux内核结构与进程管理

2009-06-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除