进程模型
worker进程
master进程模型核心函数ngx_master_process_cycle()中调用了创建子进程函数ngx_start_worker_processes(),该函数源码如下
static void
ngx_start_worker_processes(ngx_cycle_t *cycle, ngx_int_t n, ngx_int_t type)...
分类:
其他好文 时间:
2014-07-27 11:10:42
阅读次数:
252
The “Hype Cycle for Emerging Technologies” report is the longest-running annual Hype Cycle, providing a cross-industry perspective on the technologies...
分类:
其他好文 时间:
2014-07-27 11:00:12
阅读次数:
290
英文稿:The “Hype Cycle for Emerging Technologies” report is the longest-running annual Hype Cycle, providing a cross-industry perspective on the technolo...
分类:
其他好文 时间:
2014-07-27 10:59:02
阅读次数:
413
D. Going in Cycle!!Time Limit: 3000msMemory Limit: 131072KB64-bit integer IO format:%lld Java class name:MainYou are given a weighted directed graph w...
分类:
其他好文 时间:
2014-07-26 01:00:36
阅读次数:
209
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
思路:笨办法是每个节点再开辟一个属性存放是否访问过,这样遍历一遍即可知道是否有环。但为了不增加额外的空间,可以设置两个指针,一个一次走一步,另一个一次走两步...
分类:
编程语言 时间:
2014-07-25 11:09:21
阅读次数:
206
IOS block 中使用注意的问题
1.block 的循环引用(retain cycle)
2.去除block产生的告警时,需注意问题。...
分类:
移动开发 时间:
2014-07-24 23:14:13
阅读次数:
324
1.OC中内存管理方式分MRC和ARC两种MRC:手动管理引用计数。ARC:自动管理引用计数。ARC实现的原理是MRC。2.引起引用计数变化的方法加1:alloc,retain,copy;减一:release(引用计数立即减一),autorelease(在未来的某个时刻引用计数减一,这个时刻跟au....
分类:
其他好文 时间:
2014-07-24 22:26:22
阅读次数:
229
1.ARC 当你自己调用了release或retain语句的时候,ARC有效时编译文件会遇到错误,你可以通过-fno-objc-arc和-fobjc-arc两个编译器标志在混搭中支持ARC和非ARC的代码 如下面编译支持ARC,而文件代码不支持ARC # if !__has_feature(objc...
分类:
移动开发 时间:
2014-07-24 10:17:03
阅读次数:
170
一般是程序中的某一个对象被release 了两次 一般情况下是与你定义的类型有关这里面我的错误是吧 NSString 类型的变量的属性 设置为了 assign 了 目测与这个有关补充object-c 基础property,assign,copy,retain,releaseproperty:属性的定...
分类:
其他好文 时间:
2014-07-23 15:02:36
阅读次数:
163
题目:Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra spac....
分类:
编程语言 时间:
2014-07-23 12:02:46
阅读次数:
304