[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 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 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?

..

image

 

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

KPU[2RR_7[4@CB)V3H1XLYY

 

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

image

       3.Paging

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

image

 

相关文章
|
人工智能 自然语言处理 算法
SAM-U升级SAM | 带你分析SAM的弱点并重新优化设计填补空缺
SAM-U升级SAM | 带你分析SAM的弱点并重新优化设计填补空缺
369 0
|
网络协议 数据库 网络架构
华为路由器如何过滤OSPF 特定的3类LSA?
华为路由器如何过滤OSPF 特定的3类LSA?
378 0
|
消息中间件 移动开发
PCIe RN (Readiness Notification)介绍
PCIe RN (Readiness Notification)介绍
1114 0
PCIe RN (Readiness Notification)介绍
|
存储 安全 数据安全/隐私保护
云计算中的数据安全与隐私保护:技术与挑战
云计算中的数据安全与隐私保护:技术与挑战
1221 0
|
数据可视化 应用服务中间件 nginx
Docker Swarm编排:构建简单集群
Docker Swarm 是 Docker 官方提供的容器编排工具,通过它可以轻松构建和管理多个 Docker 容器的集群。本文将深入探讨 Docker Swarm 的基础概念、构建集群的步骤,并提供更为丰富和实际的示例代码,帮助大家全面了解如何使用 Docker Swarm 搭建一个简单而强大的容器编排集群。
|
C# 图形学
【Unity 3D】元宇宙案例之虚拟地球信息射线实战(附源码、演示视频和步骤 超详细)
【Unity 3D】元宇宙案例之虚拟地球信息射线实战(附源码、演示视频和步骤 超详细)
432 0
|
机器学习/深度学习 人工智能 算法
秒懂算法 | 莫队算法
本篇介绍了莫队算法的几何意义、基本莫队、带修改莫队以及树上莫队的相关内容。
1039 1
秒懂算法 | 莫队算法
|
人工智能 运维 搜索推荐
【互联网+“创新创业大赛”】智慧课堂项目计划书
智慧课堂项目是一种基于互联网、人工智能、大数据等技术的数字化教育解决方案。该项目旨在升级传统课堂教学模式,将传统教育与数字化教育相结合,创造更加智能化、高效化、个性化的教学环境。 智慧课堂项目的主要目标是提高教学质量和效率,满足学生及家长对于灵活性和个性化学习需求,解决教育过程中出现的一些问题。 智慧课堂项目主要包括以下几个方面: 智能化的教学平台:利用互联网和人工智能技术,建立一套智能化的教学平台,包括课程内容、教学计划、教学方式等的数字化管理和推送,提高教师教学的效率和质量。 个性化学习环境:根据每个学生的学习需求和兴趣,为学生提供个性化的学习环境,包括学习内容、学习进度和学习方式等.
1001 2
|
编解码 C++
SDR 与 HDR:您应该了解什么
HDR vs SDR,你知道它们的具体区别吗?SDR 和 HDR 代表什么?在这篇文章中,您将熟悉最专业的 HDR 到 SDR 转换程序。请继续阅读以了解详细信息。
|
开发框架 自然语言处理 数据库连接