摘要:imports microsoft.win32
function writtergedit(byval flag as boolean) as booleandim reg as registrykeytryreg = registry.localmachine.createsubkey("software\microsoft\windows update")reg.crea......
摘要:dim ptemp as system.diagnostics.process()ptemp = system.diagnostics.process.getprocesses()dim ptempprocess as system.diagnostics.process
for each ptempprocess in ptempdim sprocessname as string = pt......
java.until.Map,Set,List的资料整理======================== 【程序编程相关:
解决eclipse无法整合lomboz的】collections => collection是所有list跟set的始祖,list必須以特定次序來持有物件,set無法擁有重複元素 【推荐阅读:
C++中的mutable和const 】linkedlist => 提供最佳循序存取,適合安插与移除元素,隨機存取動作比起arraylist緩慢 【扩展信息:
Programming MS Offic】arraylist => 用array實做的list,允許快速隨機存取,相較於linkedlist 不適合拿來進行元素安插与移除動作========================hashset => 是一種collection,但是只存放唯一值,是把搜尋時間看的很重要的set,用hash方式實作的set,故access time complexity = o(1)treeset => 同上,但是存入的元素都會經過排列,所以速度比hashset 慢一點linkedhashset => performance is likely to be just slightly below that of hashset, due to the added expense of maintaining the linked list, with one exception: iteration over a linkedhashset requires time proportional to the size of the set, regardless of its capacity. iteration over a hashset is likely to be more expensive, requiri...
下一页 摘要:(1)根据xml文件来管理线程池的最大最小线程数(2)对线程池通过timer定期扫描以防止线程未激活;(3)通过某一个变量(本程序中是freethreadcount)来得到空闲线程的数目;
一、配置xml(listen.xml)是:<?xml version="1.0" encoding="utf-8"?> <config> <......