上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 92 下一页
ConcurrencyThe issue that can make a difference is blocking. If one task in your program is unable to continuebecause of some condition outside of the control of the program(typically I/O), we say that the taskor the thread blocks. Without concurrency, the whole program comes to a stop until the ext Read More
posted @ 2011-03-18 18:58 庚武 Views(338) Comments(0) Diggs(0) Edit
@@TRANCOUNT 函数记录当前事务的嵌套级别。每个 BEGIN TRANSACTION 语句使 @@TRANCOUNT 增加 1。每个 COMMIT TRANSACTION 或 COMMIT WORK 语句使 @@TRANCOUNT 减去 1。没有事务名称的 ROLLBACK WORK 或 ROLLBACK TRANSACTION 语句将回滚所有嵌套事务,并使 @@TRANCOUNT 减小到 0。使用一组嵌套事务中最外部事务的事务名称的 ROLLBACK TRANSACTION 将回滚所有嵌套事务,并使 @@TRANCOUNT 减小到 0。在无法确定是否已经在事务中时,可以用 SELEC Read More
posted @ 2011-03-18 12:38 庚武 Views(245) Comments(0) Diggs(0) Edit
I/OCreateing a good input/ouput (I/O) system is one of the most difficult tasks for alanguage designer. This is evidenced by the number of different approaches.The challenge seems to be in covering all possibilities. Not only are there differentsources and sinks of I/O that you want to communicate w Read More
posted @ 2011-03-18 11:09 庚武 Views(156) Comments(0) Diggs(0) Edit
AnnotationAnnotaions (also known as metadata) provide a formalized way to add information to yourcode so that you can easily use that data at some later point.Defining annotationsHere is the definition of the annotation above. You can see that annotation definitionslook a lot like interface definiti Read More
posted @ 2011-03-18 11:08 庚武 Views(331) Comments(0) Diggs(0) Edit
Anytime you want to use type information at runtime, you must first get a reference to the appropriate Class object. Class.forName() is one convenient way to do this, because you don't need an object of that type in order to get the Class reference.However, if you already have an object of the t Read More
posted @ 2011-03-16 19:39 庚武 Views(496) Comments(1) Diggs(0) Edit
package dynamicproxy;public interface SimpleInterface { void doSth(); void doSthElse(String s);}package dynamicproxy;public class RealObject implements SimpleInterface { @Override public void doSth() { System.out.println("Real Object do sth"); } @Override public void doSthElse(String s) { Read More
posted @ 2011-03-16 19:17 庚武 Views(341) Comments(1) Diggs(0) Edit
Scanner scan=new Scanner("11, " + "22, 33, 44"); scan.useDelimiter("\\s*,\\s*"); while(scan.hasNextInt()){ System.out.println(scan.nextInt()); } Read More
posted @ 2011-03-15 18:44 庚武 Views(215) Comments(0) Diggs(0) Edit
最后推荐一些文章和书,这些文章和书大部分都与技术细节无关,它们讨论的是基于编程的令人心醉的文化,也适合非技术人员阅读。1.如何成为一名黑客。所有学习编程的都应该多看几遍这篇文章,至少把 Hacker 和 Cracker 的区别弄清楚。2.大教堂和市集。这是一篇关于 Linux 的经典文章。这里需要声明一下,我对那些 Windows 程序员没有偏见,只是我觉得作为一个以编程为职业的人,如果不参观一下 Linux/Unix 的深邃世界,未免太过狭隘。3.UNIX编程艺术。 这本书虽然名字叫做“编程艺术”,但里面并不讲授如何编程,而是全面展示了迷人的 Unix 哲学和文化。看完之后你会发现,那些看上 Read More
posted @ 2011-03-15 14:25 庚武 Views(421) Comments(0) Diggs(0) Edit
http://blogold.chinaunix.net/u/2925/showart_34179.html全名:埃里克·雷蒙德 任何一场革命或者运动都需要一个理论家,需要一份纲领性的文献,起到真正的"画龙点睛"的神效。除了架构极具思辩力和逻辑性的理论体系,更需要 激发起人们对美好理想的向往,为同行者的士气传递极具煽动性的烈焰。目前,这场正在颠覆软件业传统商业模式的自由软件运动也不例外。自由软件精神领袖当然 是理查德·斯托尔曼(Richard Stallman),但他太超凡脱俗,而且,除了提出核心理念外,斯托尔曼缺乏著书立作的能力。这些局限,使得埃里克& Read More
posted @ 2011-03-15 14:04 庚武 Views(306) Comments(0) Diggs(0) Edit
Where storage lives1.Registers2.The stack3.The heap4.Constant storage5.Non-RAM storagejava Primitive type: Wrapper type1.boolean Boolean2.char 16 bits Character3.byte 8 bits Byte4.short 16 bits Short5.int 32 bits Integer6.long 64 bits Long7.float 32 bits Float8.double 64 bits Double9.void VoidHigh-p Read More
posted @ 2011-03-14 20:02 庚武 Views(152) Comments(0) Diggs(0) Edit
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 92 下一页