Fork me on GitHub
摘要: timers and time management 时间有相对、绝对时间之分。一个process在5s之后运行时相对时间,current time of day(也就是wall-time)是绝对时间,绝对时间一般是与用户交互时用到。 The system timer goes off (often 阅读全文
posted @ 2020-08-31 15:49 LT_Rock 阅读(411) 评论(0) 推荐(0)
摘要: An introduction to kernel synchronization 当一个thread正在对数据进行读写操作时,另一个thread对同一个数据进行读写操作,这就会产生冲突竞争,比如重写数据单元等。为了解决这样的问题,必须考虑synchronization的问题。这样的竞争问题,并不总 阅读全文
posted @ 2020-08-29 16:12 LT_Rock 阅读(324) 评论(0) 推荐(0)
摘要: bottom halves and deferring work 重要的需要立即处理的工作在上半页(interrupt handler)进行处理,不是太紧急的部分就在下半页进行处理。The job of bottom halves is to perform any interrupt-relate 阅读全文
posted @ 2020-08-29 11:32 LT_Rock 阅读(438) 评论(0) 推荐(0)
摘要: Kernel Data Structures Kernel 提供了以下的数据结构,就不要造轮子了(don't reinvent the wheel.)。Linked lists、Queues、Maps、Binary trees Linked lists 链式结构的数据是在不同的时期创建的,他们可能存 阅读全文
posted @ 2020-08-22 17:02 LT_Rock 阅读(349) 评论(0) 推荐(0)
摘要: Process Scheduling 顾名思义,Process Scheduler就是一个kernel subsystem 使得多个process可以顺利工作起来。它决定哪个process何时工作,工作多久。从外部看来,这给人一种多个process同时工作的假象。 对于有多个processor的设备 阅读全文
posted @ 2020-08-21 17:18 LT_Rock 阅读(420) 评论(0) 推荐(0)
摘要: 操作系统与kernel 操作系统包括内核、设备驱动、boot loader、命令shell、别的用户接口等。 典型的内核里面有:中断handle、scheduler to share processor time、a memory management system to manage proces 阅读全文
posted @ 2020-08-18 17:35 LT_Rock 阅读(261) 评论(0) 推荐(0)
摘要: 今天开通了博客园的博客功能。 现在还在纠结是电网还是回南京找嵌入式linux的工作。 如果回南京了,这个博客可能未来就被用来进行技术知识的整理和输出用了。 阅读全文
posted @ 2020-08-15 21:17 LT_Rock 阅读(98) 评论(0) 推荐(0)