Note
Daria·Saira
这个作者很懒,什么都没留下…
展开
-
OS_chapter4.5_synchronization&PV_190429
OS_chapter4.5_synchronization&PV 4.5.1 synchronization concept 互斥关系 进程不可同时对独占性资源进行操作 互斥和资源共享相关 资源 : 临界资源 存取操作区 : 临界区 同步关系 是否满足先后关系/前提条件 --> 等待/进行 互斥关系是特殊的同步关系 4.5.2 PV operation conce...原创 2019-04-29 21:36:36 · 117 阅读 · 0 评论 -
OS_chapter4.4_190422
OS_chapter4.4_190422 4.4.1临界资源与临界区 引例 为了避免program A,B 互相干扰 设定特定区域不让两程序同时进入;只能串行(先后)访问 concept critical resource(临界资源) : 一次只允许一个进程独占访问的资源 critical section(临界区) : 进程中访问临界资源的程序段 features 四原则...原创 2019-04-22 20:08:30 · 104 阅读 · 0 评论 -
COP-Digit_chapter6.1_190422
COP-Digit concept 计算机数据表示:在计算机当中,能够被硬件直接识别和处理的数据类型(对该数据类型的指令直接包含在计算机的指令集当中) 6.1 无符号数和有符号数 1.无符号数 the digits of register reflects the range of representation of unsigned Numbers (寄存器的位数反映无符号数的表示范围...原创 2019-04-22 19:15:51 · 137 阅读 · 0 评论 -
OS_chapter4.1_190417_进程管理
OS_chapter4_190417_进程管理 4.1 process concept 4.1.1 进程基本概念 background:程序在并发环境中的问题 process(进程):describe and manage the running-procedure of program the definition of process the features of proces...原创 2019-04-17 19:17:22 · 121 阅读 · 0 评论 -
OS_chapter4.3_thread_190420
OS_chapter4.3_thread 4.3.1 concept of thread(线程) leading question program : draw circle & square at same time (ppt) first DrawCircle() then DrawRect() by order not the same conclusion process c...原创 2019-04-20 17:47:38 · 129 阅读 · 0 评论 -
Function_Pynote_190408
Function definition and comprehension key point : 组合数据类型在python中以指针实现;因此若函数未定义真实的组合数据类型 (local variable) 则使用指针指向 外部 global variable; in practice alters the pointer means alters the global variable ...原创 2019-04-08 16:57:14 · 79 阅读 · 0 评论 -
Struct_chapter_2_线性结构_190407
struct_chapter_2_线性结构 2.1 线性表及其实现 2.1.1 引 : 多项式表示 question method_1 顺序存储结构 method_2 顺序存储结构表示非零项 非零项的两个信息(系数,指数) 加法运算过程 method_3 链表结构存储非零项 系数,指数,指针域 2.1.2 线性表和顺序存储 线性表 详见PPT ...原创 2019-04-07 18:30:13 · 159 阅读 · 0 评论 -
OS_chapter_2_190407
OS_chapter_2 2.1 the logical struct of OS 仅重点or索引,具体见ppt os的设计和实现思路 整体式 层次式 微内核(client/server) 整体式: module 为基本单位 , eg: the function of C module多以全局变量形式完成 层次结构: eg: TCP/IP Func以调用order排列若干层;相邻层...原创 2019-04-07 17:02:01 · 96 阅读 · 0 评论 -
chapter 4.3 cache -- 主存的地址映射和替换算法
cache – 主存的地址映射和替换算法 映射(3) 1.直接映射 原理 主存块以cache长度分区,映射时cache缓存块仅接受各区中相对应的块号,tag仅需保存t位区号 eg: cache[0] 中仅可以存放 主存[0,2c,2c+1,3*2c…] 每个缓存块i(cache) 可以和 若干个主存块对应 每个主存块j只能和 一个 缓存块(cache)对应 地址块号直接与cache对应块标记...原创 2019-04-10 20:15:23 · 1676 阅读 · 0 评论 -
OS_chapter3_190410
OS_chapter3 OS用户界面 3.1 OS启动过程 3.1.1 BIOS和主引导记录MBR 1. BIOS 实模式和保护模式(见ppt) real mode : 接电开机到OS launch successfully 前 protect mode: OS启动后 系统BIOS Basic I/O System(Firmware:固件 ) bacis location ...原创 2019-04-10 21:37:14 · 107 阅读 · 0 评论 -
190404_Py_example6 (the area of a circle)
Python_example 6 program_1 calculate the area of a circle method_1_principle method_2_principle conclusion : 1.math method compare to computer mind 2.use func perf_counter to analyze the code’...原创 2019-04-04 15:24:38 · 213 阅读 · 0 评论 -
OS_chapter4.6_同步机制_190507
chapter 4.6.1 Windows同步机制 1.临界区机制 程序存在的问题 : 多个线程同时就绪,互相干扰 对程序的改进 : PV操作互斥访问临界区 ???图片上传失败–> 补 互斥量机制 chapter 4.6.2 Linux父子进程同步机制 ...原创 2019-05-09 23:01:38 · 110 阅读 · 0 评论