linux shell脚本中流程控制语句 if、for、while、case 1、if语句 [root@centos7 test2]# ls test.sh [root@centos7 test2]# pwd /home/test2 [root@centos7 test2]# cat test.sh ...
分类:
系统相关 时间:
2021-04-22 16:20:40
阅读次数:
0
1.内核为每个进程给了两个位图,一个为mask(默认为1),一个为pending(默认为0) 2.当内核态转到用户态时,检测是否有信号,用mask & pending得到结果,如果没有接到信号,那么结果为32位的0,此时通过内核中保存的地址返回原进程。 3.当有一个信号来时,pending中对应位置 ...
分类:
系统相关 时间:
2021-04-22 16:17:45
阅读次数:
0
开发工具:Android Studio TestView(线性布局) 1、基本属性: layout_width:组件宽度(单位dp) layout_height:组件高度 id:组件id text:文本内容 textColor:字体颜色 textStyle:字体风格,normal(无效果)、bold ...
分类:
移动开发 时间:
2021-04-22 16:12:15
阅读次数:
0
照抄这个的 MFC实现Edit输入限制(只允许输入数字,小数点) Edit 控件的属性Number,只能控制只输入数字,不能控制输入小数的情况,实现这个就继承CEdit来写新的类 .h 代码 1 #pragma once 2 3 // CEditEx 4 5 class CEditEx : publ ...
分类:
编程语言 时间:
2021-04-22 16:05:43
阅读次数:
0
问题描述 安装curl时候: The following packages have unmet dependencies: curl : Depends: libcurl4 (= 7.68.0-1ubuntu2.5) but 7.68.0-1ubuntu4 is to be installed E ...
分类:
系统相关 时间:
2021-04-22 15:55:24
阅读次数:
0
1、read从键盘读入 [root@centos7 test]# echo $a [root@centos7 test]# read a 123456 [root@centos7 test]# echo $a 123456 2、-p 参数 加入提示 [root@centos7 test]# unse ...
分类:
系统相关 时间:
2021-04-22 15:41:37
阅读次数:
0
Linux系统调用表 记录下来,免得到处找 32位 int 0x80 %eax Name Source %ebx %ecx %edx %esx %edi 1 sys_exit kernel/exit.c int - - - - 2 sys_fork arch/i386/kernel/process. ...
分类:
系统相关 时间:
2021-04-22 15:36:36
阅读次数:
0
外观模式 环境搭建 npm init -y npm i vite -D 外观模式简介: 是一种通过为多个复杂的子系统提供一个一致的接口,而使这些子系统更加容易被访问的模式。该模式对外有一个统一接口,外部应用程序不用关心内部子系统的具体细节,这样会大大降低应用程序的复杂度,提高了程序的可维护性。 优点 ...
分类:
其他好文 时间:
2021-04-22 15:35:04
阅读次数:
0
并发执行-并发编程 ###1.物理机 01.Windows NumberOfCores NumberOfLogicalProcessors cpu个数 是指物理上安装了几个cpu,一般的个人电脑是安装了1个cpu cpu内核数 是指物理上,一个cpu芯片上集成了几个内核单元,现代cpu都是多核的。 ...
分类:
编程语言 时间:
2021-04-22 15:31:55
阅读次数:
0
摘要:Linux内存非法访问检查工具上新了:KFence Linux的4月份基本都是在Linux 5.12的开发版本中度过的。如果要说这个期间Linux有什么让人印象深刻的特性或者功能,那KFence一定会有一席之地。 KFence,全称Memory Safety Error Checking,之所 ...
分类:
系统相关 时间:
2021-04-22 15:25:36
阅读次数:
0