摘要: Detached entity objects are objects in special state in which they are not managed by any EntityManager but still represent objects in the database.Co 阅读全文
posted @ 2016-04-29 15:40 Jacky312 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1. Batch Store Storing a large number of entity objects requires special consideration.The combination of the clear and flush methods can be used to s 阅读全文
posted @ 2016-04-29 14:39 Jacky312 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 在并发编程中,我们需要处理两个关键问题:线程之间如何通信及线程之间如何同步(这里的线程是指并发执行的活动实体).通信是指线程之间以何种机制来交换信息.在命令式编程中,线程之间的通信机制有两种:共享内存和消息传递. 在共享内存的并发模型里,线程之间共享程序的公共状态,线程之间通过写-读内存中的公共状态 阅读全文
posted @ 2016-02-26 17:58 Jacky312 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 一、用途: 输入:n个数(a1,a2,...,an) 输出:输入序列的一个排列(即重新排序)<a1',a2',...,an'>,使得a1' <= a2' <= ...an'. 待排序的数成为关键字key. Insertion-sort的参数是一个数组A[1,2,...,N],包含n个待排序的数.(在 阅读全文
posted @ 2016-02-23 12:01 Jacky312 阅读(332) 评论(0) 推荐(0) 编辑