Loading

摘要: 计算和计算所需的数据能被较为平均的非配到若干task的时候,下面的任务管理类可以提供在大数据大计算量的情况下非精确的控制task的执行数量来限制计算量和内存占用量.下面是代码(非线程安全版本):publicclassMutilTaskManager{privatereadonlyint_maxRun;privatereadonlyint_maxQuenen;privateList<Task>_taskRunningList;privatereadonlyQueue<Task>_taskQueue;publicboolIsQueueFull{get{return_task 阅读全文
posted @ 2012-03-21 16:54 today4king 阅读(438) 评论(0) 推荐(1) 编辑
摘要: 转自stackoverflow:http://stackoverflow.com/questions/115983/how-do-i-add-an-empty-directory-to-a-git-repositoryAnother way to make a directory stay empty (in the repo) is to create a .gitignore inside that directory that contains two lines:在空目录下创建.gitignore文件。文件内写入如下代码,可以排除空目录下所有文件被跟踪: # Ignore eve... 阅读全文
posted @ 2012-03-21 16:39 today4king 阅读(34736) 评论(1) 推荐(1) 编辑