2015年5月29日

Distribute numbers to two “containers” and minimize their difference of sum

摘要: it can be solved by Dynamical Programming.Here are some useful link:Tutorial and Code: http://www.cs.cornell.edu/~wdtseng/icpc/notes/dp3.pdfA practice... 阅读全文

posted @ 2015-05-29 00:50 Milton 阅读(339) 评论(0) 推荐(0)

Java daemon thread 守护线程

摘要: 守护线程与普通线程写法上基本么啥区别,在启动线程前, 调用线程对象的方法setDaemon(true),则可以将其设置为守护线程。守护线程使用的情况较少,但并非无用,举例来说,JVM的垃圾回收、内存管理等线程都是守护线程。还有就是在做数据库应用时候,使用的数据库连接池,连接池本身也包含着很多后台线程... 阅读全文

posted @ 2015-05-29 00:42 Milton 阅读(273) 评论(0) 推荐(0)

导航