Docsity

MS Word, Lecture notes of Microsoft Word Skills

Toggle sidebar
bg1
Lesson 1: The Computer Parts
Basic parts and functionality of the
computer
Whether it is a telephone with a touch screen, a laptop, a tablet or a desktop, all computers consist of
certain basic elements. This basic assembly is formed usually of a motherboard, a processor, central
memory, hard disc drive, connections, the monitor as well as the keyboard, mouse or some kind of a
touch pad.. The majority of the listed parts are inside the cabinet, but knowing them is important in
order to manage different problem situations.
Remember what the reading instructions for this material told you: you don’t have to read everything from start to
finish! If you are familiar with a particular subject, just skim through it and skip any content which you already
know thoroughly.
The computer case
The computer case contains the most important components of the computer: the motherboard, the
processor, random access memory modules, the hard drive etc. It may not be possible to exchange
the components in a laptop computer, but in a desktop computer you have much more influence on
the parts inside the case.
The motherboard
The motherboard is the part of the computer where
such things as the processor, memory modules, expansion cards and external devices are attached.
This means that the motherboard controls the functions of different components. The number of
connection slots for peripheral devices and the number and type of memory slots are important
properties of the motherboard.
In addition to the various connections, the motherboard also has a small battery ensuring that settings
made on the board are retained even when the computer is switched off.
The processor
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download MS Word and more Lecture notes Microsoft Word Skills in PDF only on Docsity!

Lesson 1: The Computer Parts

Basic parts and functionality of the

computer

Whether it is a telephone with a touch screen, a laptop, a tablet or a desktop, all computers consist of certain basic elements. This basic assembly is formed usually of a motherboard, a processor, central memory, hard disc drive, connections, the monitor as well as the keyboard, mouse or some kind of a touch pad.. The majority of the listed parts are inside the cabinet, but knowing them is important in order to manage different problem situations.

Remember what the reading instructions for this material told you: you don’t have to read everything from start to finish! If you are familiar with a particular subject, just skim through it and skip any content which you already know thoroughly.

The computer case

The computer case contains the most important components of the computer: the motherboard, the processor, random access memory modules, the hard drive etc. It may not be possible to exchange the components in a laptop computer, but in a desktop computer you have much more influence on the parts inside the case.

The motherboard

The motherboard is the part of the computer where such things as the processor, memory modules, expansion cards and external devices are attached. This means that the motherboard controls the functions of different components. The number of connection slots for peripheral devices and the number and type of memory slots are important properties of the motherboard. In addition to the various connections, the motherboard also has a small battery ensuring that settings made on the board are retained even when the computer is switched off.

The processor

The processor can be considered to be the ‘engine’ of the computer because it executes the lion’s share of the information processing; the processor fetches commands and necessary information from the RAM, carries out the tasks specified by the commands, and returns the processed information to the RAM. The speed of a computer depends largely on the speed of the processor. The processor’s speed, in turn, is affected by various factors, such as the so-called clock frequency (usually expressed as gigahertz, GHz), the amount of cores and of the so-called cache memory inside the processor.

Random access memory

The RAM (Random Access Memory) is a memory storage that functions during computer use and is especially utilised by the processor. In modern computers, the amount of RAM is around 4 – 16 GB depending on the type and purpose of the computer (please see data entry units for more information). The RAM consists of one or more memory modules (see image above). When the computer is started, the operating system is loaded into the RAM (an operating system is a program that controls the devices and programs in a computer – please seeoperating systems for more information). The computer also loads the files being processed – music, assignments, videos etc – to the RAM. If there is enough RAM, the computer executes requested tasks quickly. This is why it is a good idea to add to the memory by buying more memory modules as the need arises.

How do I find out the amount of RAM on my computer?You can check the amount of memory on your computer in the following manner in Windows: Open the Control Panel from the Start menu, and click System and Security and then System. You will see the amount of memory on your computer on the screen.If you are using a Mac computer, you can see its memory by clicking the Mac button in the top left corner of the screen, and clicking About this Mac in the opening menu.

Hard drive

The hard drive is the permanent memory of the computer where saved files remain even when the computer is turned off. This is why the hard drive is used for saving files. The capacity of hard drives varies; currently the typical capacity is 500-1000 GB, but hard drives of over 1500 GB, i.e. 1,5 terabit, are also available. However, the capacity of the internal hard drives in laptop computers is often less than that.You can add to the capacity of your computer by attaching an additional hard drive, either internally or externally. More information about storage sizes can be found here.

A standard keyboard has 102 keys. The keys are divided into alphabetical (a-z), numerical (1-0) and special (Function, Ctrl, Alt etc keys). In addition to the usual alphabetical and numerical keys, you should know at least the following special keys that are located among the alphabetical ones.

Below are shown some typical keys on a PC keyboard. The keyboard mapping on Mac computers is almost identical to PC keyboards, but the special keys Ctrl and Alt work slightly differently. In addition, the Mac keyboard has Fn and Cmd keys instead of the Windows key. Ctrl : (Control) is used in combination with other keys for different actions. The combination Ctrl+C , for example, copies the chosen data to the memory. Alt : (Alternative) is used like the Ctrl key. Sometimes both these keys are used in combination: Ctrl+Alt+Del , for example, brings up the task manager(in Windows XP). Alt Gr : (Alternative Graphics) produces the ‘third character’ of the keys, e.g. @, $, £ and }. With this key, you can also create the ~ character (important for the internet). Create the ~ character as follows: press ALT-GR and the ~ key at the same time, and finish with the space bar. You can make so-called ascii characters with combinations of the Alt key and numerals, e.g. Alt+0176 makes the character for temperature °. You can choose to either add special characters in this way or through an application. Most text processing programs have their own menu for special characters. Shift : capitalizes letters and the special characters on the numerical keys, among others. Caps Lock : locks the capitalization of letters. This function is connected with an A or Caps lock pilot light on the keyboard. It turns on the light when the function is in use. Tab : the tabulator is mainly used in word processing: each time you press the tab button, the cursor moves to the next tab stop on the same row. The key can also be used for alternating between window displays. Backspace : removes the characters to the left of the cursor, i.e. what you just wrote. This key can also be used to remove a larger portion of text. Enter : by pressing this key you can change paragraphs or e.g. accept a function.

There are more special keys above the alphabetical keys; of these the function keys (please see next image) are used for different functions, depending on situation and the program currently being used. The manual for these functions is usually available in the manual for the program.

To the left and right of the function keys, you will find the following additional keys:

Esc (Escape): mostly used to cancel a function, or e.g. to close a menu window. Home and End : these keys bring the cursor to the top or the bottom of the line. Page Up and Page Down : move the page up or down. Insert : starts the insert function, where the text you are writing replaces the text to the right of the cursor. Delete : deletes the character to the right of the cursor.

Arrow keys : move the cursor in the direction shown by the arrows.

The number pad is activated with the Num Lock key: when it is activated, the pilot light with the symbol 1 or the text Num Lock lights up. Usually the Num Lock function has been set to be turned on when starting up the computer. If the pilot light is not turned on, the keys function in the way indicated by the symbols on the keys (8 up, 4 left, 6 right, 2 down).

The keyboard also has the rarely used keys Print Screen , Scroll Lock and Pause. The Print Screen key lets you take a picture of the display (Alt+PrintScreen takes a picture of the currently activated window) and send it to your clipboard, Scroll Lock locks the scrolling of the display and the Pause key can be used e.g. for stopping the loading of the system during start-up. For more information on hotkeys and key combinations, see the additional reading material.

Pointing devices

Traditionally, most programs have been designed to be used with a mouse. The mouse cursor seen on the screen of the computer moves along with the mouse. The cursor can be used to select menu commands and areas, as well as activating different objects by clicking the mouse keys.

Larger image: optical mouse | pointing stick and touchpad | touchscreen

Mouse

You can attach a traditional mouse with or without a cord to any computer. Cordless mice use radio waves to relay movement from the mouse to the computer (for this mouse, a small radio receiver is attached to the computer).

Touchpad

Almost all laptop computers have a touchpad which is used to move the cursor. Some models also have a so-called pointing stick. In addition, portable computers have keys with the clicking function of mouses. The touchpad is a pad where you can control the cursor by moving your finger along the pad. Tapping the pad serves the same function as clicking a mouse.

Pointing stick

The pointing stick is a ‘nub’ located in the middle of the keyboard, and controls the cursor. The pointing stick can be ‘clicked’ by tapping the stick or using the separate buttons in the keyboard. In the right-hand image above, you can see a portable computer with both a pointing stick (blue) and a touchpad (the large, dark grey area in front of the keyboard).

Touchscreen

Devices that are smaller than a laptop, such as phones and tablets, usually do not have a separate keyboard or pointer device. In these devices, the entire screen of the device works as an input device. A touchscreen is used like the track pad on a laptop, and when typing is required, a keyboard appears on the screen.

Software Basics

its own routines and data structures. These C source code modules group together logical functions such as filesystem handling code. C supports many types of variables, a variable is a location in memory which can be referenced by a symbolic name. In the above C fragment x and y refer to locations in memory. The programmer does not care where in memory the variables are put, it is the linker (see below) that has to worry about that. Some variables contain different sorts of data, integer and floating point and others are pointers.

Pointers are variables that contain the address, the location in memory of other data. Consider a variable called x, it might live in memory at address 0x80010000. You could have a pointer, called px, which points at x. px might live at address 0x80010030. The value of px would be 0x80010000: the address of the variable x.

C allows you to bundle together related variables into data structures. For example, struct { int i ; char b ; } my_struct ; is a data structure called my_struct which contains two elements, an integer (32 bits of data storage) called i and a character (8 bits of data) called b. 2.1.3 Linkers Linkers are programs that link together several object modules and libraries to form a single, coherent, program. Object modules are the machine code output from an assembler or compiler and contain executable machine code and data together with information that allows the linker to combine the modules together to form a program. For example one module might contain all of a program's database functions and another module its command line argument handling functions. Linkers fix up references between these object modules, where a routine or data structure referenced in one module actually exists in another module. The Linux kernel is a single, large program linked together from its many constituent object modules.

2.2 What is an Operating System? Without software a computer is just a pile of electronics that gives off heat. If the hardware is the heart of a computer then the software is its soul. An operating system is a collection of system programs which allow the user to run application software. The operating system abstracts the real hardware of the system and presents the system's users and its applications with a virtual machine. In a very real sense the software provides the character of the system. Most PCs can run one or more operating systems and each one can have a very different look and feel. Linux is made up of a number of functionally separate pieces that, together, comprise the operating system. One obvious part of Linux is the kernel itself; but even that would be useless without libraries or shells. In order to start understanding what an operating system is, consider what happens when you type an apparently simple command:

$ ls Mail c images perl docs tcl $

The $ is a prompt put out by a login shell (in this case bash ). This means that it is waiting for you, the user, to type some command. Typing ls causes the keyboard driver to recognize that characters have been typed. The keyboard driver passes them to the shell which processes that command by looking for an executable image of the same name. It finds that image, in /bin/ls. Kernel services are called to pull thels executable image into virtual memory and start executing it. The ls image makes calls to the file subsystem of the kernel to find out what files are available. The

filesystem might make use of cached filesystem information or use the disk device driver to read this information from the disk. It might even cause a network driver to exchange information with a remote machine to find out details of remote files that this system has access to (filesystems can be remotely mounted via the Networked File System or NFS). Whichever way the information is located, ls writes that information out and the video driver displays it on the screen.

All of the above seems rather complicated but it shows that even most simple commands reveal that an operating system is in fact a co-operating set of functions that together give you, the user, a coherent view of the system.

2.2.1 Memory management

With infinite resources, for example memory, many of the things that an operating system has to do would be redundant. One of the basic tricks of any operating system is the ability to make a small amount of physical memory behave like rather more memory. This apparently large memory is known as virtual memory. The idea is that the software running in the system is fooled into believing that it is running in a lot of memory. The system divides the memory into easily handled pages and swaps these pages onto a hard disk as the system runs. The software does not notice because of another trick, multi-processing.

2.2.2 Processes

A process could be thought of as a program in action, each process is a separate entity that is running a particular program. If you look at the processes on your Linux system, you will see that there are rather a lot. For example, typing ps shows the following processes on my system: $ ps PID TTY STAT TIME COMMAND 158 pRe 1 0:00 -bash 174 pRe 1 0:00 sh /usr/X11R6/bin/startx 175 pRe 1 0:00 xinit /usr/X11R6/lib/X11/xinit/xinitrc -- 178 pRe 1 N 0:00 bowman 182 pRe 1 N 0:01 rxvt -geometry 120x35 -fg white -bg black 184 pRe 1 < 0:00 xclock -bg grey -geometry -1500-1500 -padding 0 185 pRe 1 < 0:00 xload -bg grey -geometry -0-0 -label xload 187 pp6 1 9:26 /bin/bash 202 pRe 1 N 0:00 rxvt -geometry 120x35 -fg white -bg black 203 ppc 2 0:00 /bin/bash 1796 pRe 1 N 0:00 rxvt -geometry 120x35 -fg white -bg black 1797 v06 1 0:00 /bin/bash 3056 pp6 3 < 0:02 emacs intro/introduction.tex 3270 pp6 3 0:00 ps $

If my system had many CPUs then each process could (theoretically at least) run on a different CPU. Unfortunately, there is only one so again the operating system resorts to trickery by running each process in turn for a short period. This period of time is known as a time-slice. This trick is known as multi-processing or scheduling and it fools each process into thinking that it is the only process. Processes are protected from one another so that if one process crashes or malfunctions then it will not affect any others. The operating system achieves this by giving each process a separate address space which only they have access to.

2.2.3 Device drivers

Device drivers make up the major part of the Linux kernel. Like other parts of the operating system, they operate in a highly privileged environment and can cause disaster if they get things wrong. Device drivers control the interaction between the operating system and the hardware device that they are controlling. For example, the filesystem makes use of a general block device interface when writing blocks to an IDE disk. The driver takes care of the details and makes device specific things happen. Device drivers are specific to the controller chip that they are driving which is why, for example, you need the NCR810 SCSI driver if your system has an NCR SCSI controller.

2.3.2 Hash Tables Linked lists are handy ways of tying data structures together but navigating linked lists can be inefficient. If you were searching for a particular element, you might easily have to look at the whole list before you find the one that you need. Linux uses another technique, hashing to get around this restriction. A hash table is an array or vector of pointers. An array, or vector, is simply a set of things coming one after another in memory. A bookshelf could be said to be an array of books. Arrays are accessed by an index, the index is an offset into the array. Taking the bookshelf analogy a little further, you could describe each book by its position on the shelf; you might ask for the 5th book.

A hash table is an array of pointers to data structures and its index is derived from information in those data structures. If you had data structures describing the population of a village then you could use a person's age as an index. To find a particular person's data you could use their age as an index into the population hash table and then follow the pointer to the data structure containing the person's details. Unfortunately many people in the village are likely to have the same age and so the hash table pointer becomes a pointer to a chain or list of data structures each describing people of the same age. However, searching these shorter chains is still faster than searching all of the data structures. As a hash table speeds up access to commonly used data structures, Linux often uses hash tables to implement caches. Caches are handy information that needs to be accessed quickly and are usually a subset of the full set of information available. Data structures are put into a cache and kept there because the kernel often accesses them. There is a drawback to caches in that they are more complex to use and maintain than simple linked lists or hash tables. If the data structure can be found in the cache (this is known as a cache hit, then all well and good. If it cannot then all of the relevant data structures must be searched and, if the data structure exists at all, it must be added into the cache. In adding new data structures into the cache an old cache entry may need discarding. Linux must decide which one to discard, the danger being that the discarded data structure may be the next one that Linux needs. 2.3.3 Abstract Interfaces The Linux kernel often abstracts its interfaces. An interface is a collection of routines and data structures which operate in a particular way. For example all network device drivers have to provide certain routines in which particular data structures are operated on. This way there can be generic layers of code using the services (interfaces) of lower layers of specific code. The network layer is generic and it is supported by device specific code that conforms to a standard interface.

Often these lower layers register themselves with the upper layer at boot time. This registration usually involves adding a data structure to a linked list. For example each filesystem built into the kernel registers itself with the kernel at boot time or, if you are using modules, when the filesystem is first used. You can see which filesystems have registered themselves by looking at the file /proc/filesystems. The registration data structure often includes pointers to functions. These are the addresses of software functions that perform particular tasks. Again, using filesystem registration as an example, the data structure that each filesystem passes to the Linux kernel as it registers includes the address of a filesystem specfic routine which must be called whenever that filesystem is mounted.