原创 2013年12月05日 17:04:12
  Computer  Hardware

  A computer is a fast and accurate symbol processing system. It can accept, store, process data and produce output results. A computer can automatically process data without human intervention. However, it must be given a set of instruction to guide it, step by step, through processes. The set of instructions is called a program, The program is stored physically inside the machine, making it a program.

  All computer systems of interest to us are similar. They contain hardware components for input, central processing unit and output. The system on the small-scale is called a microcomputer or minicomputer. Continuing up the size scale, the mainframe computer is one that may offer a faster processing speed and a greater storage capacity than a typical mini. Finally comes the supercomputer, designed to process complex scientific applications, which is the largest and fastest.

  Although the capacity of computers' storage locations is varied, every computer stores numbers, letters, and other characters in a coded form. Every character in the storage is represented by a string of 0s and 1s, the only digits founded in the binary numbering system.  BCD and ASCII are popular computer codes.


  CPU is the abbreviation of Central Processing Unit, which is the heart of a computer like the head of a family. Once the power of a computer is turned on, all the behaviors are under the control of CPU. CPU is in an iron box together with other devices such as disk drives, a main memory and a switching power supply etc. In Chinese, the iron box is conventionally called the mainframe. On the back of the mainframe box, there are various ports, with which CPU may be linked with input and output devices.


  Primary memory is known as random access memory (RAM) and simple named memory. It is the storage area within the computer that holds programs and data during processing. Memory is only temporary storage area; when processing is complete, memory is cleared. The user needs to load or enter data and programs into the computer memory when using any application on the computer.

  Different computers have different amounts of memory space, referred to as memory size, ranging from 4, 8 megabytes to 64megabytes. Today, the memories of some microcomputers even can be expandable to hundreds of megabytes.

  Computer software

  Most people think of software as all of the amazing application programs available today for microcomputers. But there are other forms of computer software that make it possible to use application programs. Software is the collective name for all the programs and instructions that direct a computer's operations. Generally software can be divided into three types: system software, application software and support software, system software monitors and controls the system's hardware. Application software performs specific tasks for the user. Support software is a series of software, which support development and maintenance of other software. Software is created through the use of programming languages.

  The computer Language

  The role of a program is to deliver user's intention to a computer and direct it to work. That is to say, a program is a dialogue tool for interacting between a man and a computer, as well as a bridge to transmit information. In general, the characters, phases and their syntax rules for programming are generally called “programming language”。

  Programming languages are divided into three types: machine language, which is also called an instruction system, is the only one used directly by computers. The assembler language is a kind of symbolic language. It adopted some mnemonic symbols which can show the instructional functions to present the content of the program. The high-level language is a programming language based on English. Its operators and expressions are similar to ordinary mathematical formulas. General users can easily master a high-level language and make programs in it.


  Programming is, at its simplest, the way people tell computers what to do, when to do it, and how to do it. A program is a specific set of instructions written by one or more people, which direct the action of a computer system. It may be a very simple or complicated set of instructions. It may be written by a beginning computer user or by a top computer expert. It may be written in simple English or in a language spoken only by computers. Just as writing a fiction, programming is a process of creating art.

  What is Object Oriented Programming?

  Object oriented programming (OOP) is a new way of approaching the job of programming that differs from traditional programming because it uses objects as data structures to enhance productivity, simplify programming, get reusability and improve software reliability. All object oriented programming languages have three characteristics in common: objects, polymorphism and inheritance. Let's take a look at these concepts.

  Object is a data structure that contains both structured information and related operations. An object can contain other objects. In this way, the object is given both data properties and behaviors, and so object oriented programs can better reflect the real world they are trying to simulate. Polymorphism essentially means that one name can be used for several related but slightly different purposes. Inheritance is the process by which one object can acquire the properties of another object. This is important because it supports the concept of classification. For example, a red delicious apple is a part of the classification apple, which in turn is a part of the fruit class, which is under the larger class food.





  附注:BCD (Binary-Coded Decimal):二进制编码的十进制

  附注:ASCII(American National Standard Code for Information Interchange):美国国家信息交换标准代码


  CPU是中央处理单元的英文缩写。它是计算机的心脏,好比一家之主一样。计算机一旦通电运行,则所有的行为都要在它的控制之下运行。CPU同其它设备如磁盘驱动器、内存和开关稳压电源等被装在一个铁箱子中。 在中文里,这个箱子被习惯地称为主机。在主机箱的背后, 有各种端口,用来沟通CPU 和其它输入输出设备的联系。





  很多人认为软件就是目前微机上使用的所有令人惊奇的应用程序。但是还有一些其它形式的用以支持应用程序运行的计算机软件。 软件是所有指挥计算机操作的指令和程序的统称。 通常软件被划分成三类: 系统软件、 应用软件和支撑软件。 系统软件负责监视和控制计算机硬件;应用软件为用户完成具体的任务; 支撑软件是支撑其它软件的开发与维护的一系列软件。软件都是使用程序设计语言创造出来的。


  程序的作用就是向计算机转达用户的意图,指挥计算机工作, 也就是说,程序是人机对话的工具,是人与电脑交流信息的桥梁。 通常,程序设计所使用的符号、短语及其语法规则通称为程序设计语言。

  程序设计语言分为机器语言、汇编语言和高级语言三类。机器语言是计算机唯一能直接使用的语言,也叫做计算机指令系统;汇编语言是一种符号语言,它采用一些能反映指令功能的助记符表达程序的内容;高级语言是一种以英文为基础的设计语言, 其中的运算符和表达式都和通常的数学公式类似。 一般用户也能很容易地掌握一种高级语言, 并可以用它来编制程序。

  附注:mnemonic symbol



  程序设计,简单地说, 就是人们告诉计算机做什么,什么时候做以及怎样做的方式。 一个程序就是一组指令的集合,由一个或多人编写,用于指导计算机系统的动作。这个指令的集合可能非常简单,也可能十分复杂。它可能是一个初学计算机的用户编写的也有可能是由高级计算机专家编写的。 它可以用简单的英语编写,也可以用只有计算机“说”的语言编写。如同写小说一样,程序设计也是一个艺术创造的过程。


  与传统的编程方法不同, 面向对象的程序设计(OOP)是一种新的编程方法,它使用对象作为其数据结构以提高生产率,简化程序设计,获得可复用性和提高软件的可靠性。所有的面向对象的程序设计语言都具有对象、多态和继承的特点。 让我们来看一下这几个概念。

  对象是一种数据结构。 它既含有结构化的信息又含有相关的操作。一个对象可以含有另外一个对象。通过这种方式,对象被赋予数据特征和行为,因此,使用面向对象程序能够更好地反映程序欲模拟的现实世界。多态本质上就是使用一个名字来描述几个相关但又有所区别的目的。继承就是一个对象获得另一个对象的特征的过程。这一点非常重要,因为它支持分类的概念。例如,一个美味可口的红苹果是苹果类的一员,而苹果又是水果类的一部分,再进一步,水果又是食物这更高一级类的一部分。


软件跟硬件之间的界限已经越来越模糊了,那么处于这个灰色地带的,就是固件了。这就分成三类工作者。 1、软件工程师一般指做图形界面的程序员,工作内容就是写C++、JAVA、Web等。 2、硬件工程师当然是...
  • k331922164
  • k331922164
  • 2015年07月02日 20:04
  • 3426

程序是怎样跑起来的-第11章 硬件控制方法

第11章 硬件控制方法 热身问题 1.在汇编语言中,是用什么指令来同外围设备进行输出操作的?     IN指令和OUT指令。在x86系列CPU用的汇编语言中,通过IN指令来实现I/...
  • u014222687
  • u014222687
  • 2016年05月26日 20:40
  • 797


转载来自http://noican.blog.51cto.com/4081966/1361087 硬中断: 1. 硬中断是由硬件产生的,比如,像磁盘,网卡,键盘,时钟等。每个设备或设备集都有它自己...
  • Seven_Youngs
  • Seven_Youngs
  • 2015年11月25日 10:13
  • 2235


  • mixika99
  • mixika99
  • 2016年11月19日 20:39
  • 3414


看门狗,又叫watchdog timer,从本质上来说就是一个定时器电路,一般有一个输入和一个输出,其中的输入叫做喂狗,输出一般连接到另外一个部分的复位端,另外一个部分就是所要处理的部分,暂且称之为M...
  • zuotian5212008
  • zuotian5212008
  • 2015年09月11日 12:20
  • 3046


  • dog250
  • dog250
  • 2015年07月19日 08:08
  • 3117


现在网站发展的趋势对网络负载均衡的使用是随着网站规模的提升根据不同的阶段来使用不同的技术:   1.硬件级别负载均衡    这种负载均衡是通过硬件来进行,常见的硬件有比较昂贵的NetScaler、...
  • pursuer211
  • pursuer211
  • 2014年03月19日 00:49
  • 2252

大多数时候是软件的Bug,但是... 有时候的确是硬件的问题!

  • happydeer
  • happydeer
  • 2013年10月23日 17:44
  • 3328


做了9年硬件电路设计,5年智能手机,4年医疗器械,每次面对别人问起为啥不做软件这样的问题,心情很复杂,自己喜爱的工作居然无奈的发展到了这个窘境。 当初选择硬件是因为不想日复一日的坐在屏幕前面敲代...
  • lijiuyangzilsc
  • lijiuyangzilsc
  • 2015年06月16日 20:04
  • 1960


  • yangkuiwu
  • yangkuiwu
  • 2016年09月21日 21:44
  • 412