[Be a Coding Plasterer] Components 1:get Basic Things

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 andRAM.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 C++的Hello,World! .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,every disc 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.

           

Think in Basic Things of Computer

  Just like our life . From Life ,Create Form Life , Service Life.Yes,Its the computer.Thanks!!

时间: 2024-08-31 00:20:34

[Be a Coding Plasterer] Components 1:get Basic Things的相关文章

《Visual Basic 2012入门经典》----第1章 全身心投入:Visual Basic 2012编程之旅 1.1 开始使用Visual Basic 2012

第1章 全身心投入:Visual Basic 2012编程之旅 Visual Basic 2012入门经典在本章中,读者将学习: 创建一个简单但有一定功能的Visual Basic应用程序:让用户浏览硬盘:显示硬盘中的图片:熟悉一些编程术语:学习Visual Studio 2012 IDE.学习一门新的编程语言因其难度可能使人望而却步.如果您从来没有编写过程序,那么输入有些神秘的文本就可以产生精美的.功能强大的应用程序,这种行为对您来说可能就像一种魔法,您可能会想知道如何才能学会需要掌握的东西.

[Java Plasterer] Java Components 3:Java Enum

Written In The Font   When we to set some constants for projects, we always use 'public static final'to set Int or String constants.Or sometimes,we can also set the paramters in properties.When the project starts,we can get the properties to use them

[Java Plasterer] Java Components 4:Java String,How to use them?

Reprint it anywhere u want. Although the world is full of suffering , it is full also of the overcoming of it.  -Hellen Keller   Written In The Font 52. Suggestion:Use the String direct value for the assignment [推荐使用String直接量赋值] 54.  How to use the S

Coding 孙宇聪:《人,技术与流程》

我先做一下自我介绍,我是 07 年加入的 Google,在 Moutain View 总部任Google SRE,今年年初回国加入 Coding. 在 Google 我参与了两个 Project, 第一个就是 Youtube, 其中包括 Video transcoding, streaming 等,Google 的量很大,每个月会有 1PB 级别的存储量,存储,转码后,我们还做 Golbal CDN ,最大的时候峰值达到 10 TB,我们在全球 10 万个节点,每台机器都是 24 核跑满状态.然

[Java 泥水匠] Java Components 之一:Java String (肯定有你不懂的)

1.2 你好 String         怀着初次见你的心情,泥瓦匠和你一起打开JDK1.7文档.我最近想写一些关于JDK1.7的理解,都知道JDK8出来了,新特性我准备下阶段有空学习.         泥瓦匠想说,阅读E文文档有利于体会原汁原味.但毕竟国内大牛翻译的很不错了,咱们不加评判,喜欢哪种自己挑.能抓老鼠,能解决实际项目,适应业务环境的就是你学到了.请看下面的小例子: 清单1.1 String abc = "abc"; char data[] = {'a','b','c'}

.net入门之VB篇:Visual Basic.Net中的文件操作(一)

visual Visual Basic.Net中有三种访问文件系统的方法:第一种是使用 Visual Basic 运行时函数进行文件访问 (VB传统方式直接文件访问):第二种是通过.Net中的System.IO模型访问:第三种是通过文件系统对象模型FSO访问. 文件是存储在某种介质上数据的集合,就其本身来讲,文件只不过是磁盘上的一系列相关的数据字节.当应用程序访问文件时,它必须假定字节是否表示字符.数据记录.整数.字符串等.通过指定文件的访问类型来告诉应用程序假定什么内容. Visual Bas

Spring Security笔记:HTTP Basic 认证

在第一节 Spring Security笔记:Hello World 的基础上,只要把Spring-Security.xml里改一个位置 1 <http auto-config="true"> 2 <intercept-url pattern="/admin" access="ROLE_USER" /> 3 <http-basic /> 4 </http> 注意第三行,加上<http-basi

一起谈.NET技术,预览:Visual Basic与C#中的异步语法

在最近的博客文章中,Visual Basic团队发布了一条简单的消息,声称在Visual Basic和C#中将会增加异步编程语法.两种语言新增的Async和Await关键字的实现将基于.NET 4.0中的任务并行库(Task Parallel Library,TPL). Async关键字用于方法,它将启用方法的异步行为.在这个方法中,Await关键字将暂停当前的执行流程,直到当前异步行为结束为止.线程不会因此而暂停,它可以用于处理其他工作,例如UI事件.一旦异步行为结束后,方法的将继续执行余下部

预览:Visual Basic与C#中的异步语法

在最近的博客文章中,Visual Basic团队发布了一条简单的消息,声称在Visual Basic和C#中将会增加异步编程语法.两种语言新增的Async和Await关键字的实现将基于.NET 4.0中的任务并行库(Task Parallel Library,TPL). Async关键字用于方法,它将启用方法的异步行为.在这个方法中,Await关键字将暂停当前的执行流程,直到当前异步行为结束为止.线程不会因此而暂停,它可以用于处理其他工作,例如UI事件.一旦异步行为结束后,方法的将继续执行余下部