Today I have a chance to use the @Scheduled to achieve a timing task.It is useful.Anyway,it was the first time to use this tag,so I learn and record.T...
分类:
编程语言 时间:
2015-11-03 17:53:43
阅读次数:
163
http://2sharings.com/2014/net-4-5-task-run-parallel-for-winform-cross-multiple-threads-update-ui-demo在C# WINFORM的开发中,难免会遇到多线程的开发以提高程序的执行效率。自己刚才开始在做多线程...
分类:
编程语言 时间:
2015-11-03 12:28:48
阅读次数:
345
异常Log:Error:Execution failed for task ‘:app:dexDebug’.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Pr...
分类:
移动开发 时间:
2015-11-03 10:26:35
阅读次数:
465
http://langyu.iteye.com/blog/992916shuffle本意是洗牌的意思。在mapreduce中描述的是怎么将map task 的输出结果有效的传送到reduce task端。在Hadoop这样的集群环境中,大部分map task与reduce task的执行是在不同的节...
分类:
其他好文 时间:
2015-11-03 00:35:43
阅读次数:
192
clone()、fork()、vfork()都是Linux的系统调用。进程一般由代码段、数据段和PCB进程控制块组成。fork 创造的子进程复制了父亲进程的资源,包括内存的内容task_struct内容,新旧进程使用同一代码段,复制数据段和堆栈段,这里的复制采用了注明的copy_on_write技术...
分类:
系统相关 时间:
2015-11-02 23:09:39
阅读次数:
345
题意: 给了一个n,k,s,和一个数组,求使用小于s次的交换使得前k个整数的和尽可能的小,交换指的的是相邻的两个数交换,首先考虑 如果最小的k个数全部再最后面,那么至少要花费( n - k + 1 + n)*k/2 - (( k + 1 ) * k / 2) 这么多下才能把这k个数搬运到最前面,也就...
分类:
其他好文 时间:
2015-11-02 23:04:43
阅读次数:
390
[root@desk task]# mkdir $(date +%Y)$(date +%m)$(date +%d)[root@desk task]# mkdir `date +%Y``date +%m``date +%d`[root@desk task]# ls20151101备注:以上两条命令都可...
分类:
其他好文 时间:
2015-11-02 00:06:33
阅读次数:
210
Problem DescriptionThere are n numbers A1,A2....An{A}_{1},{A}_{2}....{A}_{n}A?1??,A?2??....A?n??,your task is to check whether there exists there diff...
分类:
其他好文 时间:
2015-10-31 22:59:17
阅读次数:
253
module.exports = function (grunt){ // laod all grunt tasks automatically require('load-grunt-tasks')(grunt); // time how long grunt task take, can hel...
分类:
其他好文 时间:
2015-10-31 22:53:27
阅读次数:
250
随机生成10个数,填充一个数组,然后用消息框显示数组内容,接着计算数组元素的和,将结果也显示在消息框中。import javax.swing.*;public class Task{ public static void main( String args[] ){ String...
分类:
其他好文 时间:
2015-10-31 21:32:02
阅读次数:
134