这里讲解几个在 Linux 操作系统上使用 fork 系统调用。(不定期更新) 一、atexit 函数 void cleanup(void) { printf("Cleaning up\n"); } void fork6() { atexit(cleanup); printf("L0"); fork ...
分类:
系统相关 时间:
2019-11-10 10:23:16
阅读次数:
85
HTML解释: HTML是英文Hyper Text Mark-up Language(超文本标记语言)的缩写,他是一种制作万维网页面标准语言(标记)。相当于定义统一的规则(W3C),大家都来遵守他,这样就可以让浏览器根据标记语言的规则去解释它。 浏览器负责将标签翻译成用户“看得懂”的格式,呈现给用户 ...
分类:
Web程序 时间:
2019-11-09 23:57:09
阅读次数:
165
Install the prerequisites: sudo yum install yum-utils To set up the yum repository, create the file named /etc/yum.repos.d/nginx.repo with the followi ...
分类:
其他好文 时间:
2019-11-09 23:26:15
阅读次数:
82
前言 自己树形dp太菜了,要重点搞 219D Choosing Capital for Treeland 终于自己做了一道不算那么毒瘤的换根dp 令 $f[u]$ 表示以 $u$ 为根,子树内总共需要交换的边数, $up[u]$ 表示以 $u$ 为根,子树外总共需要交换的边数。 Dfs1 求出 $f ...
分类:
其他好文 时间:
2019-11-09 09:39:38
阅读次数:
78
实验环境:Ubuntu 16.0.4 首当其冲: 1. nohup使用及究极重要事项 我们用服务器肯定都是想在服务器存点什么、让服务器帮我们干点什么,这时候就需要nohup(no hang up)提供的后台挂起功能了 正常使用nohup command &。这里的&表示后台挂起(其实并没有怎么关注这 ...
分类:
系统相关 时间:
2019-11-09 09:30:48
阅读次数:
114
Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to four directions: left, right, up or do ...
分类:
其他好文 时间:
2019-11-07 13:40:29
阅读次数:
75
* sometimes it's just... * i wake up, and i think: What do i have to do,to become great? * what must i do different? * than what i'm doing,and what i' ...
分类:
其他好文 时间:
2019-11-07 12:57:03
阅读次数:
92
原文: https://codingthesmartway.com/getting-started-with-rxjs-part-1-setting-up-the-development-environment-creating-observables/ Getting Started With R ...
分类:
Web程序 时间:
2019-11-06 21:21:09
阅读次数:
127
什么是枚举类型,有什么作用? 枚举类型就是一个用来组织一些有相似之处的常量的对象,作用就是管理常量,让常量更规范,统一。例: enum Direction { Up = 1, Down, Left, Right } 使用时直接用“.”的方式使用: Direction.Up、Direction.Dow ...
分类:
其他好文 时间:
2019-11-06 18:23:05
阅读次数:
77
Stories (myths) may then grow up around a ritual. Frequently the myths include representatives of those supernatural forces that the rites celebrate o ...
分类:
其他好文 时间:
2019-11-06 13:33:41
阅读次数:
52