码迷,mamicode.com
首页 >  
搜索关键字:kernel kill init    ( 35249个结果
self = [super init]
Objective-C的推荐init方法写法如下:- (id) init{ if(self = [super init]) { //为子类增加属性进行初始化 } return self;}返回值为id类型,id类型可以赋值给其他类型指针,其他类型指针也可以赋值给...
分类:其他好文   时间:2014-08-12 02:58:53    阅读次数:166
Linux开关机命令(shutdown,reboot,halt,init)
命令简介 shutdown, reboot,halt,init都可以进行关机,大致用法。 /sbin/halt [-n] [-w] [-d] [-f] [-i] [-p] [-h] /sbin/reboot [-n] [-w] [-d] [-f] [-i] /sbin/poweroff [-n] [-w] [-d] [-f] [-i] [-h] [root@linux ~]$ reboot --h usage: reboot [-n] [-w] [-d] [-f] [-h] [-i] ...
分类:系统相关   时间:2014-08-12 00:45:53    阅读次数:247
关于 self = [super init];
[plain]view plaincopyprint?- (id)init {self = [super init]; // Call a designated initializer here.if (self != nil) {// 省略其他细节}return self;}容易让人困惑的地方在于...
分类:其他好文   时间:2014-08-12 00:29:23    阅读次数:236
详解C#委托,事件与回调函数
.Net编程中最经常用的元素,事件必然是其中之一。无论在ASP.NET还是WINFrom开发中,窗体加载(Load),绘制(Paint),初始化(Init)等等。“protected void Page_Load(object sender, EventArgs e)”这段代码相信没有人不熟悉的。细...
分类:其他好文   时间:2014-08-12 00:28:23    阅读次数:229
linux进程调度机制剖析(基于3.16-rc4)
进程调度所使用到的数据结构:1.就绪队列内核为每一个cpu创建一个进程就绪队列,该队列上的进程均由该cpu执行,代码如下(kernel/sched/core.c)。1 DEFINE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues);定义了一个struct rq...
分类:系统相关   时间:2014-08-12 00:23:03    阅读次数:468
poj 2253
群#include #include int a[220][220];int x[220],y[220],n;int init(){ int i,j; for(i=0;iy?x:y;}int floyd(){ int i,j,k,t; for(k=0;kt) a[i][j]=t; ...
分类:其他好文   时间:2014-08-12 00:04:53    阅读次数:258
Linux程序设计学习笔记----System V进程间通信(信号量)
关于System V Unix System V,是Unix操作系统众多版本中的一支。它最初由AT&T开发,在1983年第一次发布,因此也被称为AT&T System V。一共发行了4个System V的主要版本:版本1、2、3和4。System V Release 4,或者称为SVR4,是最成功的版本,成为一些UNIX共同特性的源头,例如“SysV 初始化脚本”(/etc/init.d),用来...
分类:系统相关   时间:2014-08-11 21:29:15    阅读次数:515
Java Servlet 总结
Servlet是一个接口,接口中有5个方法:init、service、destroy、getServletInfo、getServletConfig。对于Servlet来说,生命周期就是init,service,destroy三步,其中service可能会调用多次。 GenericServlet实现了Servlet接口,它只是通用的Servlet,和协议无关。 HttpServlet继...
分类:编程语言   时间:2014-08-11 21:29:02    阅读次数:307
poj 1258 kruscal
//hnldyhy(303882171) 8:54:04#include // poj 1258#include using namespace std; #define N 105int p[N];void init (int n){ for (int i=1;i>n&&n>=3) ...
分类:其他好文   时间:2014-08-11 21:17:32    阅读次数:186
【Nginx】负载均衡-IP哈希策略剖析
转自:江南烟雨IP哈希初始化IP哈希的初始化函数ngx_http_upstream_init_ip_hash(ngx_http_upstream_ip_hash_module.c):static ngx_int_tngx_http_upstream_init_ip_hash(ngx_conf_t *...
分类:其他好文   时间:2014-08-11 21:00:42    阅读次数:325
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!