摘要: #pragma pack(6)struct test{ char f[10]; //自身对齐值是1,指定对齐值是6,有效对齐值1 //f首地址0x0, 所在内存空间0x0-0x09 double z; //自身对齐值是8,指定对齐值是6,有效对齐值6 //z的首地址需要被有效值6整除,但是0x09之 阅读全文
posted @ 2021-03-01 19:07 唯一诺 阅读(459) 评论(0) 推荐(0)
摘要: int main(){ int arr[] = { 1, 2, 3, 4, 6, 7,6 }; int hashTable[10000] = { 0, }; int start = 0; int max = 1; int size = sizeof(arr); for (int i = 0; i < 阅读全文
posted @ 2021-03-01 16:48 唯一诺 阅读(98) 评论(0) 推荐(0)
摘要: 1. 启动init进程2. 读取inittab配置表 myttyS0: :respawn : /etc/init.d/appauto label : runlevel :action : process respawn: 如果process字段指定的进程不存在,则启动该进程,init不等待处理结束, 阅读全文
posted @ 2021-03-01 16:47 唯一诺 阅读(709) 评论(0) 推荐(0)