概述
程序:Program,是一个静态的概念
进程:Process,是一个动态的概念
进程是程序的一次动态执行过程, 占用特定的地址空间。每个进程都是独立的,由3部分组成cpu,data,code
缺点:内存的浪费,cpu的负担
线程:Thread,是进程中一个“单一的连续控制流程” (a single sequential flow ofcontrol)/执行路径。线程又被称为轻量级...
分类:
编程语言 时间:
2016-07-16 15:55:23
阅读次数:
194
You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the 1's ...
分类:
其他好文 时间:
2016-07-16 06:49:14
阅读次数:
105
本章节我们将为大家介绍 AngularJS 路由。 AngularJS 路由允许我们通过不同的 URL 访问不同的内容。 通过 AngularJS 可以实现多视图的单页Web应用(single page web application,SPA)。 通常我们的URL形式为 http://runoob. ...
分类:
Web程序 时间:
2016-07-16 00:49:17
阅读次数:
249
1.进入单用户模式(类似windows安全模式) 开机数秒的时候按下任意键,进入GRUB菜单选项,选中要修改的内核系统,按e键进入编辑模式,选中kernel行(通常为第二行),再次按e建,在最后先打个空格表示区分,然后可以输入1或者single或者大写S,回车确定,按b键,就可以启动到单用户模式了。 ...
分类:
系统相关 时间:
2016-07-16 00:44:07
阅读次数:
261
https://msdn.microsoft.com/en-us/library/system.threading.tasks.task(v=vs.110).aspx The Task class represents a single operation that does not return ...
分类:
其他好文 时间:
2016-07-15 19:53:57
阅读次数:
119
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements ...
分类:
其他好文 时间:
2016-07-15 19:34:44
阅读次数:
140
1.本次用到的控件资料 按钮组作为翻页按钮 : http://v3.bootcss.com/components/#btn-groups-single 2.工程地址:https://github.com/digitalClass/web_page 网站发布地址: http://115.28.30.2 ...
分类:
其他好文 时间:
2016-07-14 21:18:15
阅读次数:
148
1、单一职责原则(Single Responsibility Principle) 定义 : 应该有且只有一个原因引起类的变化 注意 : 这里的类不光指类,也适用于方法和接口,比如我们常说的一个方法实现一个功能 2、里氏代换原则(Liskov Substitution Principle) 定义 : ...
分类:
其他好文 时间:
2016-07-14 19:26:17
阅读次数:
163
单例模式 1、要求一个类只能生成一个对象,所有其他对象对它的依赖都是相同的,代码实现如下 : 1、要求一个类只能生成一个对象,所有其他对象对它的依赖都是相同的,代码实现如下 : /** * 单例模式一 */ public class Single { // 构造一个私有的构造器 private Si ...
分类:
其他好文 时间:
2016-07-14 19:03:59
阅读次数:
147
点击Sublime中Help菜单下的Enter License,输入下方license即可。 —– BEGIN LICENSE —– Ryan Clark Single User License EA7E-812479 2158A7DE B690A7A3 8EC04710 006A5EEB 34E7 ...
分类:
其他好文 时间:
2016-07-14 09:58:36
阅读次数:
166