TASK_threadsp的实现及asm-offsets.h

#  主动调度与上下文切换       在学习极客时间刘超《趣谈Linux操作系统》 节时,讲到了主动调度, 通过\_\_schedule() 函数让出cpu三个步骤:         1. 取出任务队列;        2. 从队列取下一个任务;        3. 进行上下文切换;        其中第三步中上下文…

2019-07-21 · 3 分钟

查看进程运行时间及上下文切换次数

CentOS Linux release 7.5.1804 CoreLinux centosgpt 5.2.0-rc4 SMP Sun Jun 13:25:49 CST 2019 x86_64 x86_64 x86_64 GNU/Linux

2019-07-20 · 2 分钟

LeetCode – Valid Parentheses

Given a string containing just the characters '', '', '{', '}', '' and '', determine if the input string is valid

2019-07-19 · 1 分钟

Linux 进程,线程的调度策略API

    实时进程的调度策略: - - SCHED\_FIFO - SCHED\_RR - SCHED\_DEADLINE      普通进程的调度策略: - - SCHED\_NORMAL - SCHED\_BATCH - SCHED\_IDLE - - stop\_sched\_class - dl\_sched\_…

2019-07-16 · 6 分钟

Netflix Blog- Netflix的应用安全

这篇文章 Scaling Appsec at Netflix  是出自 Netflix Technology Blog Netflix的 应用安全团队的主要服务对象是在云基础架构上发布应用的工程团队, Netflix安全主张:安全是每个产品团队的责任 Netflix安全团队工作主要分为三类: - 应用安全运营功能:传统…

2019-07-13 · 1 分钟

python 解压指定路径下zip文件

项目变更版本需要源码包, 检查关键代码是否缺失,其中有一个步骤需要进入指定目录解压所有.ZIP压缩包 1\. 并行处理; 2\. zipfile extract后中文名称乱码; 1. 1.  并行处理使用 ,参考之前的扫描端口的套路修改; 2.  zipfile   解压乱码,踏着前人的足迹,查看了下python…

2019-07-12 · 2 分钟

LeetCode – Min Stack

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. - push(x) -- Push element x onto stack. - pop() -- Removes…

2019-07-10 · 1 分钟

汇编文件中的CFI指令

这篇文章CFI directives in assembly file (18 Jan 2017),   是出自google 工程师Adam Langley - ###      函数调用栈 函数调用中 调用call指令时将call指令的下一条指令 return address 入栈, 其中return…

2019-07-09 · 2 分钟

函数栈的调用

本篇主要通过反汇编与GDB两种方式分析函数栈的使用过程。

2019-07-07 · 8 分钟

获取进程信息相关命令

pid: 进程ID - tid:线程ID - tgid:主线程ID

2019-07-03 · 2 分钟