Computer Principles
Computer Principles
University of Technology
Computer Engineering Department
Computer Principles
Lecture 4
System Software
Lecture Layout:
• System Software
• The Operating System
Windows
Mac Os
Unix and Linux
Netware
• Mobile Phone Operating Systems
• Utilities
• Device Drivers
• Programming Language Processors
1
Lecture 4 Computer Principles
System Software
Systems software is used to control the computer hardware so that all
computer devices can interact with application software smoothly. It
creates a layer of insulation between the computer hardware and
application software, which can greatly help simplify the design of
application software.
2
Lecture 4 Computer Principles
4
Lecture 4 Computer Principles
Categories
While there are hundreds of different operating systems, there are only
three basic categories: embedded, network, or stand-alone.
• Embedded operating systems are used for handheld devices such as
smart phones, cable and satellite television receiver, video game systems,
5
Lecture 4 Computer Principles
6
Lecture 4 Computer Principles
7
Lecture 4 Computer Principles
Mac OS
Apple introduced its Macintosh microcomputer and operating system in
1984. It provided one of the first GUIs, making it easy even for novice
computer users to move and delete files. Designed to run with Apple
computers, Mac OS is not as widely used as the Windows operating
system. As a result, fewer application programs have been written for it.
Nonetheless, Mac OS is considered to be one of the most innovative
operating systems. It is a powerful, easy-to-use operating system that is
popular with professional graphic designers, desktop publishers, and
many home users.
One of the latest versions of the Macintosh operating system is Mac OS
X. This operating system provides a wide array of powerful features
including Spotlight and Dashboard Widgets. Spotlight is an advanced
search tool that can rapidly locate files, folders, e-mail messages,
addresses, and much more. Dashboard Widgets are a collection of
specialized programs that will constantly update and display information.
Some versions of Mac OS X also include Boot Camp, which allows
Macintosh computers to run both Mac OS and the Windows operating
system.
8
Lecture 4 Computer Principles
9
Lecture 4 Computer Principles
Netware
NetWare is a local-area network (LAN) operating system developed by
Novell Corporation. NetWare is a software product that runs on a variety
of different types of LANs, from Ethernets to IBM token-ring networks.
It provides users and programmers with a consistent interface that is
independent of the actual hardware used to transmit messages.
Mobile Phone Operating Systems
Mobile phone operating systems, also known as mobile OS, are a type of
embedded operating system. Every smart phone has a mobile phone
operating system. Although less complicated and more specialized for
wireless communication, these operating systems control smart phones
just as Windows or Mac OS controls desktop computer operations.
While there are numerous mobile phone operating systems, some of the
best known are Symbian, BlackBerry OS, iPhone OS, Android, and
Windows Phone 7.
• Symbian has its origins in Japan with Nokia, Sony, and others.
Introduced in 2009, it controls more smart phones worldwide than any
other mobile operating system.
• BlackBerry OS, also known as RIM OS, was first introduced in 1999
by a small Canadian firm called Research In Motion. Originally designed
as the platform for the BlackBerry handheld computer, it has evolved into
a powerful mobile phone operating system that is challenging Symbian.
• iPhone OS was originally developed in 2007 by Apple. It is based on
Mac OS and is used as the platform for Apple’s iPhone, iPod Touch, and
iPad. iPhone OS is one of the fastest growing mobile operating systems.
• Android was originally introduced in 2007. It was originally developed
by Android Inc. and later purchased by Google. Like the iPhone OS,
Android is one of the fastest growing mobile operating systems.
10
Lecture 4 Computer Principles
Utilities
Utility programs are used to help end users with a “tool box” to fine-tune
hardware components or modify system software functions, and they are
normally associated with the operating system. The utility programs for
large computer systems (e.g., mainframe computers and supercomputers)
are designed for professional system programmers to either modify or
repair the system software. However, the utility programs for
microcomputers are very often used by end users. They are user-friendly
and designed for end users to format a diskette, change the monitor’s
background pattern, or install computer hardware. Some vendors provide
utility programs that can enhance the performance of the computer (such
as a RAM disk), install virtual memory, or check for viruses.
11
Lecture 4 Computer Principles
All kinds of things can happen—internal hard disks can crash, computers
can freeze up, operations can slow down, and so on. These events can
make computing very frustrating. That’s where utilities come in. Utilities
are specialized programs designed to make computing easier. There are
hundreds of different utility programs. The most essential are
• Troubleshooting or diagnostic programs that recognize and
correct problems, ideally before they become serious.
• Antivirus programs that guard your computer system against
viruses or other damaging programs that can invade your computer
system.
• Uninstall programs that allow you to safely and completely
remove unneeded programs and related files from your hard disk.
• Backup programs that make copies of files to be used in case the
originals are lost or damaged.
• File compression programs that reduce the size of files so they
require less storage space and can be sent more efficiently over the
Internet. Most operating systems provide some utility programs.
Even more powerful utility programs can be purchased separately
or in utility suites.
• Screen saver a screen saver prevents a monitor’s display screen
from being etched by an unchanging image (burn-in).
• Data recovery a data recovery utility is used to “undelete” a file or
information that has been accidentally deleted. By this function,
users are able to undo the last delete operation that has taken place.
Device Drivers
Every device, such as a mouse or printer that is connected to a computer
system has a special program associated with it. This program, called a
device driver or simply a driver, works with the operating system to
12
Lecture 4 Computer Principles
allow communication between the device and the rest of the computer
system. Each time the computer system is started, the operating system
loads all of the device drivers into memory. Whenever a new device is
added to a computer system, a new device driver must be installed before
the device can be used. Windows supplies hundreds of different device
drivers with its system software. For many devices, the appropriate
drivers are automatically selected and installed when the device is first
connected to the computer system. For others, the device driver must be
manually installed. Fortunately, Windows provides wizards to assist in
this process. For example, Windows’ Add a Device Wizard provides
step-by-step guidance for selecting the appropriate hardware driver and
installing that driver. If a particular device driver is not included with the
Windows system software, the product’s manufacturer will supply one.
Many times these drivers are available directly from the manufacturer’s
Web site.
Programming Language Processors
A program language processor can be either a compiler or an interpreter.
A compiler translates programming codes into machine code all at once
so that an executable file will be created. An interpreter translates a
program line by line for each execution. Interpreters are usually used by
business researchers or software developers who frequently modify their
software and make lots of changes. It is easier to diagnose the
programming errors line by line after the execution. An example is the
BASIC interpreter.
A compiler has the advantage of being able to generate an executable file
for later execution. This file, called the object code, is represented in
binary code (machine code). The original program is called the source
code. Users only need the object code to execute the program. Therefore,
they do not have to compile the program every time they need to run it.
13
Lecture 4 Computer Principles
The drawback is that if there are any programming errors, it is very hard
for the program designers to tell what went wrong. Therefore, compilers
are best used for programs that are fully developed and ready for the user.
14
Lecture 4 Computer Principles
15
Lecture 5 Computer Principles
University of Technology
Computer Engineering Department
Computer Principles
Lecture 5
Programming Language
Lecture Layout:
1
Lecture 5 Computer Principles
2
Lecture 5 Computer Principles
3
Lecture 5 Computer Principles
4
Lecture 5 Computer Principles
5
Lecture 5 Computer Principles
6
Lecture 5 Computer Principles
not work. Programming errors are of two types: syntax errors and logic
errors.
Syntax Errors
A syntax error is a violation of the rules of the programming language. For
example, in C ++, each statement must end with a semicolon (;). If the
semicolon is omitted, the program will not run due to a syntax error.
7
Lecture 5 Computer Principles
Logic Errors
A logic error occurs when the programmer uses an incorrect calculation or
leaves out a programming procedure. For example an endless loop.
Step 5: Program Documentation
Documentation consists of written descriptions and procedures about a
program and how to use it. It is not something done just at the end of the
programming process. Program documentation is carried on throughout all
the programming steps. This documentation is typically within the program
itself and in printed documents. In this step, all the prior documentation is
reviewed, finalized, and distributed. Documentation is important for people
who may be involved with the program in the future.
8
Lecture 5 Computer Principles
9
Lecture 5 Computer Principles
Changing Needs
All organizations change over time, and their programs must change with
them. Programs need to be adjusted for a variety of reasons, including new
tax laws, new information needs, and new company policies. Significant
revisions may require that the entire programming process begin again with
program specification.
10
Lecture 5 Computer Principles
13
Lecture 6 Computer Principles
University of Technology
Computer Engineering Department
Computer Principles
Lecture 6
Multimedia
Lecture Layout:
• Introduction to Multimedia
• Hypertext and Hypermedia
• Multimedia Applications
• Multimedia Systems
• Components of Multimedia System
• A brief look at Multimedia Input and Format
1
Lecture 6 Computer Principles
Introduction to Multimedia
Multimedia means that computer information can be represented through
audio, video, and animation in addition to traditional media (i.e., text,
graphics/drawings, and images). Multimedia is the field concerned with
the computer controlled integration of text, graphics, drawings, still and
moving images (Video), animation, audio, and any other media where
every type of information can be represented, stored, transmitted and
processed digitally.
Hypertext and Hypermedia
Hypertext is a text which contains links to other texts. The term was
invented by Ted Nelson around 1965.
2
Lecture 6 Computer Principles
3
Lecture 6 Computer Principles
Multimedia Applications
Examples of Multimedia Applications include:
• World Wide Web
• Interactive TV
• Computer Games
• Digital video editing and production systems
• Multimedia Database systems
• Video conferencing
• Home shopping
Multimedia Systems
A Multimedia System is a system capable of processing multimedia data
and applications. A Multimedia System is characterized by the
processing, storage, generation, manipulation and rendition of
Multimedia information.
Characteristics of a Multimedia System
A Multimedia system has four basic characteristics:
Multimedia systems must be computer controlled.
Multimedia systems are integrated.
The information they handle must be represented digitally.
The interface to the final presentation of media is usually
interactive.
Challenges for Multimedia Systems
Supporting multimedia applications over a computer network renders the
application to be distributed. Multimedia systems may have a variety of
media at the same instant unlike the normal applications. There is a
temporal relationship between many forms of media (e.g. Video and
Audio). There are two forms of problems might occur which are:
4
Lecture 6 Computer Principles
For the previous challenges, the following features are desirable for a
Multimedia System:
1- Very High Processing Power: needed to deal with large data
processing and real time delivery of media.
5
Lecture 6 Computer Principles
7
Lecture 6 Computer Principles
• Stored at 1 bit per pixel (Black and White), 8 Bits per pixel (Grey
Scale, Color Map) or 24 Bits per pixel (True Color)
• Size: a 512x512 Grey scale image takes up 0.23 Mb, a 512x512 24
bit image takes 0.75 Mb with no compression.
• Compression is commonly applied.
Audio
• Audio signals are continuous analog signals.
• Input: microphones and then digitized and stored.
• CD Quality Audio requires 16-bit sampling at 44.1 KHz even
higher audiophile rates (e.g. 24-bit, 96 KHz).
• 1 Minute of Stereo CD quality (uncompressed) audio requires 10
Mb.
• Usually compressed (E.g. MP3, AAC, etc).
Video
• Refers to recording, manipulating, and displaying moving images,
especially in a format that can be presented on a television.
• Input: Analog Video is usually captured by a video camera and
then digitized.
• There are a variety of video (analog and digital) formats
• Raw video can be regarded as being a series of single images.
There are typically 25, 30 or 50 frames per second. A larger frame
size gives better quality and a larger file. To determine how many
pixels each frame is you simply multiply the width in pixels by the
height in pixels to get the total number of pixels. A typical
640x480 TV frame (not HD) is 307200 pixels or about 0.3 MB. If
you would save one such file in an uncompressed image format,
like BMP, you would get a file at least 300kb large. If we want to
show our video in color we need to use three color channels to
8
Lecture 6 Computer Principles
represent the one pixel. Today we almost always use one byte per
color channel, and although we use different color spaces we most
often need three color channels. To get the raw uncompressed size
of the video frame you then need to multiply the number of pixels
in the video frame by 3 to get the number of bytes each video
frame will take. You now have the size of the uncompressed video
frame, in our example 0.9 Megabyte.
• The size of one second video footage would then require
25*0.9=22.5 Mb. A normal movie running one and a half hour
would require 90*60*22.5 = 121500 MB = 118 GB or about 26
single layer DVDs. The obvious conclusion is that when you work
with videos you require a lot of free disk space and you need take
make it smaller with compression when you have finished creating
a video.
• A 512 ×512 size of monochrome video images take 25×0.25 =
6.25Mb for a minute to store uncompressed. Typical PAL digital
video (720×576 pixels per color frame) 1.2 ×25 = 30Mb for a
minute to store uncompressed. High Definition DVD (1440×1080
= 1.5 Megapixels per frame) 4.5×25 = 112.5Mb for a minute to
store uncompressed. (There are higher possible frame rates).
• Digital video clearly needs to be compressed for most times. JPEG,
Motion JPEG and MPEG are three well-used acronyms used to
describe different types of image compression format.
9
Lecture ۷ Computer Principles
University of Technology
Computer Engineering Department
Computer Principles
Lecture ۷
Introduction to Computer Graphics
Lecture Layout:
1
Lecture ۷ Computer Principles
2
Lecture ۷ Computer Principles
Pixels
3
Lecture ۷ Computer Principles
Graphics Areas
Practitioners would agree on the following major areas of computer
graphics:
• Modeling the process of forming a computer model of an object's
shape. For example, a coffee mug might be described as a set of
ordered 3D points along with some interpolation rule to connect the
points and a reflection model that describes how light interacts with
the mug.
• Rendering is a term inherited from art and deals with the creation of
shaded images from 3D computer models.
• Animation is a technique to create an illusion of motion through
sequences of images. Animation uses modeling and rendering but
adds the key issue of movement over time, which is not usually dealt
with in basic modeling and rendering.
4
Lecture ۷ Computer Principles
There are many other areas that involve computer graphics, and whether
they are core graphics areas is a matter of opinion. Such related areas
include the following:
User interaction deals with the interface between input devices such
as mouse and tablets, the application, feedback to the user in imagery,
and other sensory feedback.
Virtual reality attempts to immerse the user into a 3D virtual world.
This typically requires at least stereo graphics and response to head
motion. For true virtual reality, sound and force feedback should be
provided as well.
Image processing deals with the manipulation of 2D images and is
used in both the fields of graphics and vision.
3D scanning uses range-finding technology to create measured 3D
models. Such models are useful for creating rich visual imagery, and
the processing of such models often requires graphics algorithms.
Computational photography is the use of computer graphics,
computer vision, and image processing methods to enable new ways
of photographically capturing objects, scenes, and environments.
Geometric Model
Polygons
Basically, a 3D model is formed from points called vertices (or vertexes) that
define the shape and form polygons. A polygon is an area formed from at
least three vertexes (a triangle). A four-point polygon is a quad, and a
polygon of more than four points is an n-gon. The overall integrity of the
model and its suitability to use in animation depend on the structure of the
polygons. Therefore thee most classical method for modeling 3D geometry
is the use of polygons. An object is approximated by a polygonal mesh, that
5
Lecture ۷ Computer Principles
is a set of connected polygons. Most of the time, triangles are used for
simplicity and generality.
6
Lecture ۷ Computer Principles
each rasterized pixel must take into account the optical properties of the
object.
7
Lecture ۷ Computer Principles
8
Lecture ۷ Computer Principles
9
Lecture ۷ Computer Principles
10
Lecture ۷ Computer Principles
and for scenario training for experienced users such as specific fire-
fighting situations that are too costly or dangerous to create
physically.
• Medical imaging creates meaningful images of scanned patient data.
Computer graphics is used to create shaded images that help doctors
extract the most salient information from such data.
11
Lecture 8 Computer Principles
University of Technology
Computer Engineering Department
Computer Principles
Lecture 8
Communications and Networks
Lecture Layout:
• Communications
• Communication Systems
• Communication Channels
• Connection Devices
• Connection Service
• Data Transmission
• Networks
1
Lecture 8 Computer Principles
Communications
Computer communications is the process of sharing data, programs,
and information between two or more computers. There are numerous
applications that depend on communication systems, including:
• E-mail: provides a fast, efficient alternative to traditional mail
by sending and receiving electronic documents.
• Instant messaging: supports direct, “live” electronic
communication between two or more friends.
• Internet telephone: provides a very low-cost alternative to
long-distance telephone calls using electronic voice and video
delivery.
• Electronic commerce: buying and selling goods electronically.
Connectivity
Connectivity is a concept related to using computer networks to link people
and resources. For example, connectivity means that you can connect your
microcomputer to other computers and information sources almost
anywhere. With this connection, you are linked to the world of larger
computers and the Internet. This includes hundreds of thousands of Web
servers and their extensive information resources. Thus, becoming computer
competent and knowledgeable becomes a matter of knowing not only about
connectivity through networks to microcomputers, but also about larger
computer systems and their information resources.
Communication Systems
Communication systems are electronic systems that transmit data from one
location to another. Whether wired or wireless, every communication system
has four basic elements:
2
Lecture 8 Computer Principles
Communication Channels
Communication channels are an essential element of every communication
system. These channels actually carry the data from one computer to
another. There are two categories of communication channels. One category
3
Lecture 8 Computer Principles
4
Lecture 8 Computer Principles
Wireless Connections
Wireless connections do not use a solid substance to connect sending and
receiving devices. Rather, they move data through the air. Primary
technologies used for wireless connections are radio frequency, microwave,
satellite, and infrared.
• Radio frequency (RF): uses radio signals to communicate between
wireless devices. For example, smart phones and many Internet-
enabled devices use RF to place telephone calls and/or to connect to
the Internet. Most home or business wireless networks are based on a
technology called Wi-Fi (wireless fidelity) to communicate over
short distances. A number of standards for Wi-Fi exist, and each can
send and receive data at a different speed. Bluetooth is a short-range
radio communication standard that transmits data over short distances
of up to approximately 33 feet. Bluetooth is widely used for wireless
head sets, printer connections, and handheld devices. The range of
Wi-Fi networks is being extended over greater distances using a new
technology known as WiMax (Worldwide Interoperability for
Microwave Access). WiMax is commonly used by universities and
others to extend the capability of existing Wi-Fi networks.
5
Lecture 8 Computer Principles
6
Lecture 8 Computer Principles
and speed above the earth. They can amplify and relay microwave
signals from one transmitter on the ground to another. Satellites can
be used to send and receive large volumes of data. Uplink is a term
relating to sending data to a satellite. Downlink refers to receiving
data from a satellite. The major drawback to satellite communication
is that bad weather can sometimes interrupt the flow of data. One of
the most interesting applications of satellite communications is for
global positioning. A network of 24 satellites owned and managed by
the Defense Department continuously sends location information to
earth. Global positioning system (GPS) devices use that information
to uniquely determine the geographical location of the device.
Available in many automobiles to provide navigational support, these
systems are often mounted into the dash with a monitor to display
maps and speakers to provide spoken directions. Many of today’s cell
phones, including the Apple iPhone, use GPS technology for handheld
navigation.
7
Lecture 8 Computer Principles
Modems
The word modem is short for modulator-demodulator. Modulation is the
name of the process of converting from digital to analog. Demodulation is
the process of converting from analog to digital. The modem enables digital
microcomputers to communicate across different media, including telephone
wires, cable lines, and radio waves. The speed with which modems transmit
data varies. This speed, called transfer rate, is typically measured in
thousands of bits (kilobits) per second (Kbps). The higher the speed, the
faster you can send and receive information. For example, transferring an
image like Figure 9-10 might take 5 seconds with a 500 Kbps modem and
8
Lecture 8 Computer Principles
less than 3 seconds with an 850 Kbps modem. There are four commonly
used types of modems: telephone, DSL, cable, and wireless.
• A telephone modem is used to connect a computer directly to a
telephone line. These modems can be either internal or external.
Internal modems are on an expansion card that plugs into a slot on the
system board. An external modem is typically connected to the system
unit through a serial or USB port.
• A DSL (digital subscriber line) modem uses standard phone lines to
create a high-speed connection directly to your phone company’s
offices. These devices are usually external and connect to the system
unit using either USB or Ethernet ports.
• A cable modem uses the same coaxial cable as your television. Like a
DSL modem, a cable modem creates high-speed connections using the
system unit’s USB or Ethernet port.
• A wireless modem is also known as a WWAN (wireless wide area
network) modem. It is usually a small plug-in USB or Card device
that provides very portable high-speed connectivity from virtually
anywhere.
9
Lecture 8 Computer Principles
Connection Service
For years, large corporations have been leasing special high-speed lines from
telephone companies. Originally, these were copper lines, known as T1
lines, that could be combined to form higher-capacity options known as T3
or DS3 lines. These lines have largely been replaced by optical carrier
(OC) lines, which are substantially much faster. While the special high-
speed lines are too costly for most individuals, Internet service providers do
provide affordable connections. For years, individuals relied on dial-up
services using existing telephones and telephone modems to connect to the
Internet. This type of service has been replaced by higher-speed connection
services including DSL, cable, satellite, and cellular services.
• Digital subscriber line (DSL) service is provided by telephone
companies using existing telephone lines to provide high-speed
connections.
• ADSL (asymmetric digital subscriber line) is one of the most
widely used types of DSL. DSL is much faster than dial-up.
• Cable service is provided by cable television companies using their
existing television cables. These connections are faster than DSL.
• Satellite connection services use satellites to provide wireless
connections. While slower than DSL and cable modem, satellite
connections are available almost anywhere using a satellite-receiving
disk.
• Cellular services use 3G and 4G cellular networks to provide
wireless connectivity to the Internet. Although not as fast as the other
services, cellular services are rapidly growing in popularity for mobile
devices such as cell phones and other portable devices.
10
Lecture 8 Computer Principles
Data Transmission
Several factors affect how data is transmitted. These factors include
bandwidth and protocols.
Bandwidth
Bandwidth is a measurement of the width or capacity of the
communication channel. Effectively, it means how much information can
move across the communication channel in a given amount of time. For
example, to transmit text documents, a slow bandwidth would be
acceptable. However, to effectively transmit video and audio, a wider
bandwidth is required. There are four categories of bandwidth.
• Voice band, also known as low bandwidth, is used for standard
telephone communication. Microcomputers with telephone modems
and dial-up service use this bandwidth. While effective for
transmitting text documents, it is too slow for many types of
transmission, including high-quality audio and video.
• Medium band is used in special leased lines to connect
minicomputers and mainframes as well as to transmit data over long
distances. This bandwidth is capable of very high-speed data transfer.
• Broadband is widely used for DSL, cable, and satellite connections
to the Internet. Several users can simultaneously use a single
broadband connection for high-speed data transfer.
11
Lecture 8 Computer Principles
Networks
A computer network is a communication system that connects two or more
computers so that they can exchange information and share resources.
Networks can be set up in different arrangements to suit users’ needs.
Terms
There are a number of specialized terms that describe computer networks.
These terms include
• Node: any device that is connected to a network. It could be a
computer, printer, or data storage device.
• Client: a node that requests and uses resources available from other
nodes. Typically, a client is a user’s microcomputer.
• Server: a node that shares resources with other nodes. Dedicated
servers specialize in performing specific tasks. Depending on the
specific task, they may be called an application server,
communication server, database server, file server, printer server, or
Web server.
• Directory server: a specialized server that manages resources, such
as user accounts, for an entire network.
• Host: any computer system that can be accessed over a network.
13
Lecture 8 Computer Principles
14
Lecture 8 Computer Principles
15