-
Java 理论与实践: 非阻塞算法简介--转载
所属栏目:[Java] 日期:2020-12-14 热度:61
在不只一个线程访问一个互斥的变量时,所有线程都必须使用同步,否则就可能会发生一些非常糟糕的事情。Java 语言中主要的同步手段就是 synchronized ?关键字(也称为 内在锁 ),它强制实行互斥,确保执行? synchronized ?块的线程的动作,能够被后来执行受[详细]
-
Java 理论与实践: JDK 5.0 中更灵活、更具可伸缩性的锁定机制--
所属栏目:[Java] 日期:2020-12-14 热度:122
多线程和并发性并不是什么新内容,但是 Java 语言设计中的创新之一就是,它是第一个直接把跨平台线程模型和正规的内存模型集成到语言中的主流语言。核心类库包含一个? Thread ?类,可以用它来构建、启动和操纵线程,Java 语言包括了跨线程传达并发性约束的构[详细]
-
并发编程 — 并发数据结构--转载
所属栏目:[Java] 日期:2020-12-14 热度:147
并发编程系列文章:?????? 初解线程池:?????? 详解线程池:?????? 并发数据类型:?????? 并发数据结构:??????? 由于并行程序与串行程序的不同特点,适用于串行程序当中的常用数据结构在并发环境中会引发线程安全问题 ,例如 ArrayList,HashSet,HashMap 等,这是因[详细]
-
使用 JSSE 定制 SSL 连接的属性--转载
所属栏目:[Java] 日期:2020-12-14 热度:82
当数据在网络上传播的时候,通过使用 SSL 对其进行加密和保护,JSSE 为 Java 应用程序提供了安全的通信。在本篇有关该技术的高级研究中,Java 中间件开发人员 Ian Parkinson 深入研究了 JSSE API 较不为人知的方面,为您演示了如何围绕 SSL 的一些限制进行编[详细]
-
基于事件的 NIO 多线程服务器--转载
所属栏目:[Java] 日期:2020-12-14 热度:140
JDK1.4 的 NIO 有效解决了原有流式 IO 存在的线程开销的问题,在 NIO 中使用多线程,主要目的已不是为了应对每个客户端请求而分配独立的服务线程,而是通过多线程充分使用用多个 CPU 的处理能力和处理中的等待时间,达到提高服务能力的目的。?多线程的引入,[详细]
-
如何使用JCA (J2EE 连接器架构)实现企业应用--转载
所属栏目:[Java] 日期:2020-12-14 热度:179
JCA (J2EE 连接器架构,Java Connector Architecture)是对J2EE标准集的重要补充。因为它注重的是将Java程序连接到非Java程序和软件包中间件的开发。连接器特指基于Java连接器架构的源适配器,其在J2EE1.3规范中被定义。JCA连接器同时提供了一个重要的能力,即[详细]
-
An NIO.2 primer--reference
所属栏目:[Java] 日期:2020-12-14 热度:118
Part 1: The asynchronous channel APIs The More New I/O APIs for the Java? Platform (NIO.2) is one of the major new functional areas in Java 7,adding asynchronous channel functionality and a new file system API to the language. Developers w[详细]
-
JAAS LOGIN IN WEBLOGIC SERVER--reference
所属栏目:[Java] 日期:2020-12-14 热度:81
The Java Authentication and Authorization Service (JAAS) is a standard extension to the security in the J2SE Development Kit 5.0. JAAS provides the ability to enforce access controls based on user identity. JAAS is provided in WebLogic Ser[详细]
-
深入分析 iBATIS 框架之系统架构与映射原理--转载
所属栏目:[Java] 日期:2020-12-14 热度:183
http://www.ibm.com/developerworks/cn/java/j-lo-ibatis-principle/ iBATIS 通过 SQL Map 将 Java 对象映射成 SQL 语句和将结果集再转化成 Java 对象,与其他 ORM 框架相比,既解决了 Java 对象与输入参数和结果集的映射,又能够让用户方便的手写使用 SQL[详细]
-
JDK源码重新编译——支持eclipse调试JDK源码--转载
所属栏目:[Java] 日期:2020-12-14 热度:81
最近在研究jdk源码,发现debug时无法查看源码里的变量值。?因为sun提供的jdk并不能查看运行中的局部变量,需要重新编译一下rt.jar。下面这六步是编译jdk的具体步骤: Step?1:??Locate?the?JDK?source First?navigate?to?the?JDK?install?directory,?and?loca[详细]
-
Servlet 工作原理解析--转载
所属栏目:[Java] 日期:2020-12-14 热度:150
原文:http://www.ibm.com/developerworks/cn/java/j-lo-servlet/index.html?ca=drs- Web 技术成为当今主流的互联网 Web 应用技术之一,而 Servlet 是 Java Web 技术的核心基[详细]
-
用java读取properties文件--转
所属栏目:[Java] 日期:2020-12-14 热度:158
今天为了通过java读取properties文件,google了很长时间,终于找到了。现在特记录之和大家一起分享。? ??? 下面直接贴出代码:java类? readFile(String fileName) { InputStream in = = ( != in = Mytest. = pros.propertyNames(); = "key=" + key + " value[详细]
-
5 Ways to Use Log Data to Analyze System Performance--refere
所属栏目:[Java] 日期:2020-12-14 热度:52
div class="content" Recently we looked across some of the most common behaviors that our community of 25,000 users looked for in their logs with a particular focus on web server logs. In fact our research identified the top 15 web server t[详细]
-
Java Interview Reference Guide--reference
所属栏目:[Java] 日期:2020-12-14 热度:75
h1 class="entry-title"Part?1 http://techmytalk.com/2014/01/24/java-interview-reference-guide-part-1/ JAVA Object Oriented Concepts Java in based on Object Oriented concepts,which permits higher level of abstraction to solve any problem in[详细]
-
Eclipse Key Shortcuts for Greater Developers Productivity--r
所属栏目:[Java] 日期:2020-12-14 热度:164
div class="postInfo" p class="postmetadata"Posted by?a title="Posts by Ajitesh Kumar" href="http://vitalflux.com/author/vitalflux/" rel="author"Ajitesh Kumar /?span class="category"In?a title="View all posts in Java" href="http://vitalflux[详细]
-
Load resources from classpath in Java--reference
所属栏目:[Java] 日期:2020-12-14 热度:69
In general classpath is the path where JVM can find .class files and resources of your application and in this tutorial we will see how to load resources such as .properties files that are on classpath. Class' getResourceAsStream() One way[详细]
-
Top 10 Questions about Java Exceptions--reference
所属栏目:[Java] 日期:2020-12-14 热度:98
reference from:http://www.programcreek.com/2013/10/top-10-questions-about-java-exceptions/ This article summarizes the top 10 frequently asked questions about Java exceptions. 1. Checked vs. Unchecked In brief,checked exceptions must be e[详细]
-
Executing System commands in Java---ref
所属栏目:[Java] 日期:2020-12-14 热度:70
One of the nice features of Java language is that it provides you the opportunity to execute native system commands and in this tutorial we will see how to use Runtime class in a quite simple program to execute commands like ipconfig As an[详细]
-
Top 10 Mistakes Java Developers Make--reference
所属栏目:[Java] 日期:2020-12-14 热度:87
This list summarizes the top 10 mistakes that Java developers frequently make. #1. Convert Array to ArrayList To convert an array to an? ArrayList ,developers often do this: String > list = Arrays . asList ( arr ) ; Arrays.asList() ?will r[详细]
-
ArrayList的实现原理--转
所属栏目:[Java] 日期:2020-12-14 热度:128
1. ArrayList概述: ?? ArrayList是List接口的可变数组的实现。实现了所有可选列表操作,并允许包括 null 在内的所有元素。除了实现 List 接口外,此类还提供一些方法来操作内部用来存储列表的数组的大[详细]
-
Java命令行运行参数说明大全--转
所属栏目:[Java] 日期:2020-12-14 热度:107
?来源:http://xinklabi.iteye.com/blog/837435 Java在运行已编译完成的类时,是通过java虚拟机来装载和执行的,java虚拟机通过操作系统命令JAVA_HOMEbinjava –option 来启动,-option为虚拟机参数,JAVA_HOME为JDK安装路径,通过这些参数可对虚拟机的运[详细]
-
Top 10 questions about Java Collections--reference
所属栏目:[Java] 日期:2020-12-14 热度:154
reference from:http://www.programcreek.com/2013/09/top-10-questions-for-java-collections/ The following are the most popular questions of Java collections asked and discussed on Stackoverflow. Before you look at those questions,it's a good[详细]
-
Debugging to Understand Finalizer--reference
所属栏目:[Java] 日期:2020-12-14 热度:169
This post is covering one of the Java built-in concepts called? Finalizer . This concept is actually both well-hidden and well-known,depending whether you have bothered to take a look at the? java.lang.Object ?class thoroughly enough. Righ[详细]
-
Why String is immutable in Java ?--reference
所属栏目:[Java] 日期:2020-12-14 热度:66
String ?is an immutable class in Java. An immutable class is simply a class whose instances cannot be modified. All information in an instance is initialized when the instance is created and the information can not be modified. There are m[详细]
-
使用apache common-io 监控文件变化--转
所属栏目:[Java] 日期:2020-12-14 热度:70
div class="cnblogs_code" span style="color: #0000ff;"import span style="color: #000000;" org.apache.commons.io.filefilter.FileFilterUtils; span style="color: #0000ff;"import span style="color: #000000;" org.apache.commons.io.monitor.FileAl[详细]