jiyong3998

导航

 

2023年11月14日

摘要: 一、进程优先级 https://gityuan.com/2015/10/01/process-priority/ 进程可划分为普通进程和实时进程,那么优先级与nice值的关系图: 优先级值越小表示进程优先级越高,3个进程优先级的概念: 静态优先级: 不会时间而改变,内核也不会修改,只能通过系统调用改 阅读全文
posted @ 2023-11-14 19:43 jiyong3998 阅读(25) 评论(0) 推荐(0) 编辑
 

2023年10月19日

摘要: 1、利用backtrace 跟踪各种段错误 #include <execinfo.h> #include <iostream> #include <signal.h> void map_dump(void) { char buff[64] = {0x00}; sprintf(buff, "cat / 阅读全文
posted @ 2023-10-19 20:35 jiyong3998 阅读(57) 评论(0) 推荐(0) 编辑