码迷,mamicode.com
首页 >  
搜索关键字:task    ( 7323个结果
linux内核学习-6信号量(关注新浪微博:寂寞侵蚀的岁月(4000多篇技术分享))
#include // 调度程序头文件,定义了任务结构task_struct、初始任务0 的数据,// 还有一些有关描述符参数设置和获取的嵌入式汇编函数宏语句。8 #include // 内核头文件。含有一些内核常用函数的原形定义。9 #include // 段操作头文件。定义了有关段寄存器操作的嵌入式汇编函数。1011 #include // 信号头文件。定义信号符号常量,信号结构以及信号操作函...
分类:系统相关   时间:2015-04-21 13:04:27    阅读次数:194
hdu 3572 Task Schedule 最大流 Dinic算法,,卡时间。。建图非常有讲究
Problem Description Our geometry princess XMM has stoped her study in computational geometry to concentrate on her newly opened factory. Her factory has introduced M new machines in order to process the coming N tasks. For the i-th task, the factory has to...
分类:编程语言   时间:2015-04-21 09:50:13    阅读次数:190
kebab (hdu 2883 网络流判满流 关键是缩点)
题意:有一个烧烤机,每次最多能烤 m 块肉,现在有 n 个人来买烤肉,每个人到达时间为 si,离开时间为 ei,点的烤肉数量为 ci,每个烤肉所需烘烤时间为 di,注意一个烤肉可以切成几份来烤。 思路:这一题和hdu 3572 Task Schedule有一点点像,但这一题时间的范围跨度太大,不能再每个时刻看成一个点了,要进行缩点,这一点很巧妙,我没想到。将所有的到达时间和结束时间按升序排序,得到 x <= 2n-1 个时间区间。建立网络流模型:s为源,t为汇,每个顾客i作为一个结点并连边(s, i, ni...
分类:其他好文   时间:2015-04-21 09:46:05    阅读次数:132
Linux内核源代码情景分析-信号
一、我们先来看下信号的所设计的数据结构:struct task_struct { int sigpending; int exit_code, exit_signal; /* Protects signal and blocked */ struct signal_struct *sig; sigset_t blocked; struct sigpending pending;...
分类:系统相关   时间:2015-04-21 09:37:03    阅读次数:231
关于Executor 接口
public interface Executor {     /**      * @param command the runnable task      * @throws RejectedExecutionException if this task cannot be      * accepted for execution      * @throws NullPoint...
分类:其他好文   时间:2015-04-20 22:44:41    阅读次数:104
杭电1093(不会做)
Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains an integer N in the first line, and then N lines follow. Ea...
分类:其他好文   时间:2015-04-20 20:46:06    阅读次数:133
杭电1001(人生路自己走)
Problem DescriptionIn this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.InputThe input will consist of a series of integers n, one ...
分类:其他好文   时间:2015-04-20 16:43:17    阅读次数:94
杭电1090(今天的汗水会是你明天的成长)
Problem DescriptionYour task is to Calculate a + b.InputInput contains an integer N in the first line, and then N lines follow. Each line consists of ...
分类:其他好文   时间:2015-04-20 16:42:30    阅读次数:101
杭电1001
Problem DescriptionIn this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.InputThe input will consist of a series of integers n, one ...
分类:其他好文   时间:2015-04-20 16:17:37    阅读次数:144
Spring3.0.6定时任务task:scheduled
分类:编程语言   时间:2015-04-20 14:33:52    阅读次数:217
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!