Wednesday, February 25, 2009

How Computers Work: The CPU and Memory

The Central Processing Unit (CPU)


The computer does its primary work in a part of the machine we cannot see, a control center that converts data input to information output. This control center, called the central processing unit (CPU), is a highly complex, extensive set of electronic circuitry that executes stored program instructions. All computers, large and small, must have a central processing unit. As Figure 1 shows, the central processing unit consists of two parts: The control unit and the arithmetic/logic unit. Each part has a specific function.
Before we discuss the control unit and the arithmetic/logic unit in detail, we need to consider data storage and its relationship to the central processing unit. Computers use two types of storage: Primary storage and secondary storage. The CPU interacts closely with primary storage, or main memory, referring to it for both instructions and data. For this reason this part of the reading will discuss memory in the context of the central processing unit. Technically, however, memory is not part of the CPU. Recall that a computer's memory holds data only temporarily, at the time the computer is executing a program. Secondary storage holds permanent or semi-permanent data on some external magnetic or optical medium. The diskettes and CD-ROM disks that you have seen with personal computers are secondary storage devices, as are hard disks. Since the physical attributes of secondary storage devices determine the way data is organized on them, we will discuss secondary storage and data organization together in another part of our on-line readings. Now let us consider the components of the central processing unit.

  • The Control Unit The control unit of the CPU contains circuitry that uses electrical signals to direct the entire computer system to carry out, or execute, stored program instructions. Like an orchestra leader, the control unit does not execute program instructions; rather, it directs other parts of the system to do so. The control unit must communicate with both the arithmetic/logic unit and memory.
  • The Arithmetic/Logic Unit The arithmetic/logic unit (ALU) contains the electronic circuitry that executes all arithmetic and logical operations. The arithmetic/logic unit can perform four kinds of arithmetic operations, or mathematical calculations: addition, subtraction, multiplication, and division. As its name implies, the arithmetic/logic unit also performs logical operations. A logical operation is usually a comparison. The unit can compare numbers, letters, or special characters. The computer can then take action based on the result of the comparison. This is a very important capability. It is by comparing that a computer is able to tell, for instance, whether there are unfilled seats on airplanes, whether charge- card customers have exceeded their credit limits, and whether one candidate for Congress has more votes than another.

Logical operations can test for three conditions:

  • Equal-to condition. In a test for this condition, the arithmetic/logic unit compares two values to determine if they are equal. For example: If the number of tickets sold equals the number of seats in the auditorium, then the concert is declared sold out.
  • Less-than condition. To test for this condition, the computer compares values to determine if one is less than another. For example: If the number of speeding tickets on a driver's record is less than three, then insurance rates are $425; otherwise, the rates are $500.
  • Greater-than condition. In this type of comparison, the computer determines if one value is greater than another. For example: If the hours a person worked this week are greater than 40, then multiply every extra hour by 1.5 times the usual hourly wage to compute overtime pay.


Thursday, February 19, 2009

Why is computer important to our society?

  • Computer can give more information for us.Other than that,it also have more benefit and able to help us in daily,especially in our job,such as to reseach about something we don't know or we don't understand about something and we can use computer to help to make our job become easy
  • Because we can work in more convenient with computers. we could do things better with computers by searching on their information needs.
  • Today that we are in computer age, it's really important to know the computer, not only because it is in today, but it's because everything today is works by computer, it helps us to improve our living, it makes us easy our tasks not only at home, even in office, transportation, communication, & etc.
  • Our society revolves around computers. Kids would be so bored without them. But it is actually making our language worse by all the IMing, and the slang we use on the the internet. Also strangers can get all sort of information on computers, and thats how kidnapping starts.

Wednesday, February 18, 2009

My point of view

Now a days people is so very adicted when it comes to computer becuase they can do anything they want, communicate with their family in other country by using computer, but it's just a little bit more expensive, but you will satisfied then to see or communicate to you love one's.And also they can find friends through internet.But the worst thing is that you cannot do this kind of activity if you have no internet connection.

But there is also good thing in computer even though you have no internet connection you can also learn more things in computer, and that is practice typing,making any presentation and many more. And for today the CompEd is more improve becuase of new technologies that come in other country,also the learning of computer today is more improvevable than before it just becuase of new technologies and learning centers that build so that every person who want to learn can learn a very unexpensive amount,they can teach you more and if will graduated this will help you to your job becuase computer can make your work easy and fast.