zoukankan      html  css  js  c++  java
  • 2018-2019-1 20165337 《信息安全系统设计基础》第5周学习总结

    一. 教材总结:

        磁盘上可以记录的最大位数叫做他的最大容量
    
        磁盘容量的决定因素有:
    
        1.记录密度
    
        2.磁道密度
    
        3.面密度
    
    磁盘用读写头来实现读写在磁盘的位
    
    磁盘以扇区的块读写数据
    
    磁盘的访问时间主要分布:
    
    1.寻道时间
    
    2.旋转时间
    
    3.传送时间
    

    对磁盘存储的图解:

        固态硬盘:
    
        固态硬盘是一种基于闪存的技术,一个SSD由多个闪存芯片和闪存翻译层组成
    
        SSD是由半导体存储器组成,没有移动部件
    
        随机访问时间较短,能耗低
    
        固态硬盘图解:
    

    高速缓存处理器:

    高速缓存处理器由元组来描述
    
    个悲剧每个组的高速缓存行数,分类,每一组有一行叫做直接缓存:
    

    二. 本周错题总结:
    The following table gives the parameters for a number of different caches. For
    each cache, determine the number of cache sets (S), tag bits (t), set index bits (s),
    and block offset bits (b) ( )

    A. 第三行S为1

    B. 第一行t为24

    C. 第二行b为5

    D. 第三行s的值为0
    答案:ACD

    解析:S=2^s; t=m-(s+b);s = log2(S);b=log2(B)

    下面说法正确的是()

    A.存储层次结构中最小的缓存是寄存器

    B.存储层次结构的中心思想是每一层都缓存来自较低一层的数据对象

    C.L4主存可以看作是L5:本地磁盘的缓存

    D.L4主存可以看作是L6的缓存

    答案:ABC

    下面代码中()局部性最差

    1 #define N 1000
    2 3
    typedef struct {
    4 int vel[3];
    5 int acc[3];
    6 } point;
    7 8
    point p[N];
    A

    1 void clear1(point *p, int n)
    2 {
    3 int i, j;
    4 5
    for (i = 0; i < n; i++) {
    6 for (j = 0; j < 3; j++)
    7 p[i].vel[j] = 0;
    8 for (j = 0; j < 3; j++)
    9 p[i].acc[j] = 0;
    10 }
    11 }
    B

    1 void clear2(point *p, int n)
    2 {
    3 int i, j;
    4 5
    for (i = 0; i < n; i++) {
    6 for (j = 0; j < 3; j++) {
    7 p[i].vel[j] = 0;
    8 p[i].acc[j] = 0;
    9 }
    10 }
    11 }
    C

    1 void clear3(point *p, int n)
    2 {
    3 int i, j;
    4 5
    for (j = 0; j < 3; j++) {
    6 for (i = 0; i < n; i++)
    7 p[i].vel[j] = 0;
    8 for (i = 0; i < n; i++)
    9 p[i].acc[j] = 0;
    10 }
    11 }
    D .
    不确定
    答案:C

  • 相关阅读:
    python time库
    python urllib.request
    python random库
    python3中post请求 json 数据
    python3 中post处理json 数据
    python3中post和get请求处理
    ThinVnc-身份验证绕过(CVE-2019-17662)
    python3 获取博彩网站页面下所有域名(批量)
    Apache Solr Velocity模板注入RCE漏洞复现
    宽字节注入和防御
  • 原文地址:https://www.cnblogs.com/y963976867/p/9866544.html
Copyright © 2011-2022 走看看