下载地址
基于知识库的Unix主机配置安全审计软件的设计与实现
配置安全审计是保证 Unix 主机安全的重要措施,并进一步为 Unix 操作系统所承载的业务应用提供了安全保障。
本文首先分析 Unix 操作系统的配置安全和传统的配置安全审计方法,并针对传统方法的不足,提出一种基于可灵活配置的知识库实现 Unix 操作系统配置安全审计软件的设计方案,最后给出这种方案的具体实现。
介绍了 Linux 下的串口驱动的设计层次及接口, 并指出串口与 TTY 终端之间的关 联层次(串口可作 TTY 终端使用), 以及 Linux 下的中断处理机制/中断共享机制, 还有串口缓 冲机制当中涉及的软中断机制; 其中有关 w83697/w83977 IC 方面的知识, 具体参考相关手 册, 对串口的配置寄存器有详细介绍, 本文不再进行说明
下载地址
Linux基于W83697和W83977的UART串口驱动开发文档
下载地址
Android操作系统的课程教学
Android操作系统的课程教学
介绍了《Android系统应用程序开发》的课程设置及案例教学,根据Android操作系统的课程特点,结合目前师范类院校本科生的认知能力,研究了Android操作系统的课堂教学,该课程的教学过程可为从业者提供一些案例依据.
先来说说静态库
An archive (or static library) is simply a collection of object files stored as a single file.(An archive is roughly the equivalent of a Windows .LIB file.) When you provide an archive to the linker, the linker searches the archive for the object files it needs, extracts them, and links them into your program much as if you had provided those object files directly. You can create an archive using the ar command.Archive files traditionally use a .a extension rather than the .o extension used by ordinary object files. Here’ s how you would combine test1.o and test2.o into a single libtest.a archive: % ar cr libtest.a test1.o test2.o The cr flags tell ar to create the archive. --- 摘自《Advanced Linux Programming》
由上面可以看到,linux 操作系统中:
1. 静态库是一些目标文件 (后缀名为. o) 的集合体而已。
2. 静态库的后缀名是. a,对应于 windows 操作系统的后缀名为. lib 的静态库。
3. 可以使用 ar 命令来创建一个静态库文件。
来看一个实例,根据书中的代码简化的,先看一看可以编译成库文件的源文件中的代码:
/* test.c */
int f()
{
return 3;
}
代码非常简单,只有一句话。我们敲入如下命令:
gcc –c test.c ar cr libtest.a test.o
分析Linux经典内核版本2.6.22的进程调度算法,利用性能监测单元的监测信息,给出3个性能指标CMR、CRR、OCIP对进程的缓存竞争性强弱进行刻画,以此为依据,采用轮询算法优化Linux下的进程调度顺序,尽量避免在CPU上同时运行多个缓存竞争力强的进程,减小系统因缓存竞争产生的性能损耗。在benchmark上的测试结果表明,该方法能够提升系统在中、高负载下运行时的性能,在高负载下运行时的性能提升比例可达6%左右。
下载地址
基于缓存竞争优化的Linux进程调度策略
According to the analysis of the process scheduling algorithm of Linux kernel 2.6.22, through the information getting from Performance Monitor Unit(PMU), this paper puts forward three performance indexes CMR, CRR and OCIP to describe the process behavior of cache contention. On the basis of this, it uses polling algorithm to optimize the process scheduling in order to reduce the cache contention of Last Level Cache(LLC). Benchmark test results show that this algorithm can improve about 6% performance when the system load is high.
© 2025 VxWorks Club