博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[Be a Coding Plasterer] Components 1:get Basic Things
阅读量:7039 次
发布时间:2019-06-28

本文共 3044 字,大约阅读时间需要 10 分钟。

Written In The Font

  I am writing at home.Today it is windy,but I am feeling isuitable and warm.Why the title is called ‘Be a Coding Plasterer’? I think that a good computer programmer should know something about Hardware and how the code runs with CPU and RAM.so when I am learning ,I wanna say somthing about them after thinking.

pieces:

1. Hello World

2. Software Framework

3. OS(Operating System)

 

Hello World

  Hello World,its the start of computer coding.every programmer likes it.so how ‘Hello World’ runs in computer and why its designed so.I wrote an article before,go to  .Here what I think,

1. A simple code is not simple.Like a tree,start from the root,its a little complex in the body.‘Dont let yourself stop learning’

2. Learning the basic things is so nice.‘Just a boy find ways to go home when being lost.

  After learning,some Questions in my head.

Q: IO chips,PCI,ISA.. What are they?

Q: Runtime Library,Operating System Kernel .. What are they? How they work together?

..

 

Software Framework

  In daily life when we wanna cross the river,what we want is just a bridge. How the same meaning use in the computer.Long age,there are many problems in computer development.But after solving them, a saying is

  ‘Any problem in computer science can be solved by another layer of indirection.’

  A software need to call the system.And its very complex but interesting.There are many layers of indirections between them.I will give a picture about computer software architecture

 

OS(Operating System)

  1. CPU

    CPU nerver stops.

    Multiprograming:

      It is monitoring the cpu.when its useless,let it handle other things.

    Time-Sharing System:

      After a process running for some time , it lets the CPU handle others for some time.each has the opportunity to run for a period of time.

    Mutil-tasking System:

      All softwares run with processes. Every process has its priority.Each has the independent space.Each gets the CPU by its priority.When its overtime,it pauses.Its called ‘Preemptive’.CPU switches bewteen processes.

  2. Device Driver

    Device Driver is a part of OS,running with the OS Kernel.

    Hard Disk:

      Basic storage unit is Sector. Every sector has 512 Bytes. For example, one hard disk has 2 discs,everydisc has 65536 tracks,every track has 1024 sectors.So

1
2 * 2 * 65536 * 1024 * 512 KB = 128 GB

    about CPU

      CPU has some commands for I/O and others.Like,provides ‘in’‘out’to read or write in hardware.

  3. Memory

    Memory,Like what in our head.We store everything in head.So the computer does.

    Q: How the computer provides the limited physical memory to some programs? and we can see many problems: 1.no isolation of address room.  2.week efficiency of memoryusing  3.program running adress is not sure.

    A:

       1.Using the Virtual Address to make the isolation of address. Like the saying:‘Any problem in computer science can be solved by another layer of indirection.’,we solve it .Every process has own Virtual Address and it means the process has a own Physical Address.

       2.Segmentaion

       3.Paging

       Processes’s virtual addresses have the mappings with the hard disk.

 

转载地址:http://leial.baihongyu.com/

你可能感兴趣的文章
使用Jazz Automation编写自动化测试
查看>>
松下要造懒人必备智能家居:用平板指挥微波炉
查看>>
Colt进行网络升级 提供100Gbps光纤服务
查看>>
Php常用代码数据库的连接及读取和写入
查看>>
《响应式Web设计:HTML5和CSS3实践指南》——1.5节基于媒介查询的图像缩放
查看>>
Li-Fi无线技术揭秘:Wi-Fi的补充而非替代
查看>>
C Primer Plus 第6版 编程练习 2.12 答案
查看>>
有线电视的用户信息,成为美国黑客的新目标
查看>>
物联网智慧社区 衣食住行全智能
查看>>
高性能的Python扩展:第一部分
查看>>
Qt Linguist介绍
查看>>
Qt Creator快捷键
查看>>
《C语言解惑》—— 2.2 printf输出整数或字符
查看>>
为什么在 Redis 实现 Lua 脚本事务?
查看>>
《草根自媒体达人运营实战》一一2.4 总结
查看>>
Linux 内核被指缺乏安全性
查看>>
《Hadoop与大数据挖掘》——2.7 本章小结
查看>>
《Unity 3D人工智能编程》——2.2 子弹类
查看>>
flatpickr 发布 V3 版本 ,Javascript 日期选择器
查看>>
Win10 Creators Update:自动激活磁盘清理工具
查看>>