Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionHiking in the mountains is seldom an easy task for most people, as it is ...
分类:
其他好文 时间:
2015-01-28 17:28:12
阅读次数:
173
uva 10795 A Different Task
The (Three peg) Tower of Hanoi problem is a popular one in computer science. Briefly the problem is to transfer all the disks from peg-A to peg-C using peg-B as i...
分类:
其他好文 时间:
2015-01-28 14:45:37
阅读次数:
194
Technorati 标签: current thread_info 在内核中,可以通过current宏来获得当前执行进程的task_struct指针。现在来简要分析以下: 最原始的定义如下: #define current get_current() #define get_current() (...
分类:
其他好文 时间:
2015-01-28 14:36:32
阅读次数:
391
学习TaskThread主要有三个类要关注:
TaskTreadPool: 任务线程池
TaskThread:任务线程
Task: 任务
1. TaskThreadPool
Darwin运行着一个或者多个任务(Task)线程,并将他们统一在线程池TaskThreadPool中管理。任务线程从事件线程中接收RTSP和RTP请求,然后把请求传递到恰当的服务器模块进行处理,把数据包发送...
Posted by Shiv Kumar on 23rd February, 2011 The Asynchronous Programming Model (or APM) has been around since .NET 1.1 and is still (as of .NET 4.0) t...
分类:
Web程序 时间:
2015-01-28 09:34:13
阅读次数:
256
解题思路:给定n个点,m条边,判断是否构成一个环注意到构成一个环,所有点的度数为2,即一个点只有两条边与之相连,再有就是判断合并之后这n个点是否在同一个连通块CircleTime Limit: 1 Second Memory Limit: 32768 KBYour task is so easy. ...
分类:
其他好文 时间:
2015-01-28 00:45:23
阅读次数:
365
//
// main.m
// OC05-task-03
//
// Created by Xin the Great on 15-1-25.
// Copyright (c) 2015年 Xin the Great. All rights reserved.
//
#import
int main(int argc, const char * argv[]) {
@auto...
分类:
其他好文 时间:
2015-01-27 21:58:07
阅读次数:
157
//
// main.m
// OC05-task-04
//
// Created by Xin the Great on 15-1-26.
// Copyright (c) 2015年 Xin the Great . All rights reserved.
//
#import
int main(int argc, const char * argv[]) {
@aut...
分类:
其他好文 时间:
2015-01-27 21:57:46
阅读次数:
186
//
// main.m
// OC05-task-05
//
// Created by Xin the Great on 15-1-26.
// Copyright (c) 2015年 Xin the Great. All rights reserved.
//
#import
int main(int argc, const char * argv[]) {
@auto...
分类:
其他好文 时间:
2015-01-27 21:56:46
阅读次数:
145
//
// main.m
// OC05-task-06
//
// Created by Xin the Great on 15-1-26.
// Copyright (c) 2015年 Xin the Great. All rights reserved.
//
#import
int main(int argc, const char * argv[]) {
@auto...
分类:
其他好文 时间:
2015-01-27 21:56:17
阅读次数:
163