TList实现的任务队列 var g_tasks: TList; type PTRecvPack = ^TRecvPack; TRecvPack = record // 接收到的原数据 socket: TCustomWinSocket; data: AnsiString; end; procedur ...
分类:
其他好文 时间:
2016-09-12 14:21:33
阅读次数:
104
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;using System.Windo... ...
分类:
移动开发 时间:
2016-09-08 18:11:10
阅读次数:
192
题目链接: http://acm.split.hdu.edu.cn/showproblem.php?pid=3661 Problem Description In a factory, there are N workers to finish two types of tasks (A and B ...
分类:
其他好文 时间:
2016-09-08 16:20:05
阅读次数:
95
1、果断先上结论 1.如果想增加map个数,则设置mapred.map.tasks 为一个较大的值。 2.如果想减小map个数,则设置mapred.min.split.size 为一个较大的值。 3.如果输入中有很多小文件,依然想减少map个数,则需要将小文件merger为大文件,然后使用准则2。 ...
分类:
系统相关 时间:
2016-09-07 19:25:47
阅读次数:
266
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Collections; namespace 练习0 ...
分类:
其他好文 时间:
2016-09-06 11:58:08
阅读次数:
145
ansible-playbook参考(1)基础示例~]#vimbase.yaml
-hosts:192.168.1.114
remote_user:root
tasks:
-name:installhttpdserver
yum:name=httpdstate=present
-name:starthttpdserver
service:name=httpdstate=started(2)handlers示例~]#vimhandlers.yaml
-hosts:192.168.1.114
re..
分类:
其他好文 时间:
2016-09-06 01:17:27
阅读次数:
133
private List boltEmit(String out_stream_id, Collection anchors, List values, Integer out_task_id) { timer.start(); List out_tasks = null; try { if (ou... ...
分类:
其他好文 时间:
2016-09-03 19:40:27
阅读次数:
105
5Hive参数hive.exec.max.created.files说明:所有hive运行的map与reduce任务可以产生的文件的和默认值:100000hive.exec.dynamic.partition说明:是否为自动分区默认值:falsehive.mapred.reduce.tasks.speculative.execution说明:是否打开推测执行默认值:truehive.input.form..
分类:
其他好文 时间:
2016-09-02 23:46:17
阅读次数:
827
概述 如果想在Spring中使用任务调度功能,除了集成调度框架Quartz这种方式,也可以使用Spring自己的调度任务框架。 使用Spring的调度框架,优点是:支持注解(@Scheduler),可以省去大量的配置。 实时触发调度任务 TaskScheduler接口 Spring3引入了TaskS ...
分类:
编程语言 时间:
2016-08-31 15:44:32
阅读次数:
324