Top-Rated Free Essay
Preview

Operating System

Good Essays
2481 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Operating System
1. Computer System Components

(i) Hardware
Provides basic computing resources (CPU, memory, Input/output (I/O) devices).

(ii) Operating System (OS)
Controls and coordinates the use of the hardware among the various application programs for the various users.

(iii) Applications Programs /Application Software
Define the ways in which the system resources are used to solve the computing problems of the users (compilers, database systems, video games, business programs).

(iv) Users
Include people, machines, and other computers.

1.1 Common operating system platforms include:
Windows(NT, Vista, Window 7 etc)
Unix,
Linux (RedHat, SuSE, and Ubuntu)
MS DOS

SYSTEM SOFTWARE TECHNOLOGY

2. Overview of Operating Systems

Operating System
It is a set of system software routines that sits between the application program and the hardware.

It is a program that acts as an intermediary between the user of a computer and the computer hardware.

It is part of the computing system that manages all of the hardware and all of the software which controls every file, device, section of main memory and every nanosecond of processing time

It is the one program which is running at all times (all else being application programs).

Note:
System software contributes to the performance of the computer system while application software does a specific job for the user.
3. Functions of an Operating System:

Make the computer system convenient to use.
Use the computer hardware in an efficient manner.
Allocate resources (e.g. CPU time, memory space, file storage space, I/O devices) to specific programs – thus increasing efficiency of computer system.
Controls the execution of user programs and the operations of I/O devices.

4. Characteristics of an operating system

Concurrency
Concurrency is the existence of several simultaneous or parallel activities such as overlapping of I/O operations with computation.

Sharing
Concurrent activities may be required to share resources or information.

Long-term storage
The need for sharing of programs and data implies the need for long-term storage of information. Long-term storage allows users the convenience of keeping their programs or data in the computer rather than on some external medium.

Non determinacy
An operating system must be determinate in the sense that the same program that runs today or tomorrow with the same data, should produce the same results. On the other hand it is indeterminate in that it must respond to events which will occur in an unpredictable manner. These events include resource requests, run-time errors in programs, and interrupts from peripheral devices.

5. An operating system consists of the following essential managers:

Memory manager
Processor manager
Device manager
File manager

The following diagram is an abstract representation of an operating system demonstrating how its major components work together in a non-networked operating system with its four sub-system managers supporting the user command interface

User Command Interface

Processor Manager Memory Manager

Device Manager File Manager

6. Tasks Performed by Each Subsystem

Monitor its resources continuously
Enforce the policies that determine who gets what, when and how much
Allocate the resource when appropriate
Deallocate the resource (reclaim it) when appropriate

Note:
Networked systems have a Network Manager that assumes responsibility for networking tasks while working harmoniously with every other manager)

Processor Manager (CPU) Memory Manager (main memory)

Network Manager Device (network communications, Manager protocols, etc)
(keyboard, printer, disk drives, File Manager modem, monitor, etc) (program files, data files, compilers, etc)

Subsystems must work with each other.

Example:
If someone types a command to execute a program, the following major steps must occur in sequence

a) The Device Manager must receive the electrical impulses from the keyboard, decode the keystrokes to form the command, and send the command to the User Command Interface, where the Processor Manager validates the command.
b) The Processor Manager then sends an acknowledgement message to be displayed on the video monitor so the user realizes the command has been sent.
c) When the Processor Manager receives the command, it determines whether the program must be retrieved from the storage or is already in memory, and then notifies the appropriate manager.
d) If the program is in storage, the File Manager must calculate its exact location on the disk and pass this information to the Device Manager, which retrieves the program and sends it to the Memory Manager.
e) The Memory Manager then finds space for it and record its exact location in memory. Once the program is in memory (even it’s moved) as well as its progress as it’s executed by the Processor Manager.

Processor Manager
Allocates CPU time
Keeps track of each process status - waiting, executing
Sets up necessary registers and tables
Reclaims processor when job is finished and/or time for job has expired
Two levels of responsibility
1. Accepts or rejects the incoming jobs (handled by Job Scheduler)
2. Decides which process gets the CPU and for how long (Handled by the Process Scheduler)

Memory Manager
Checks validity of each request for memory space and if it is a legal request, allocates a portion of memory that isn’t already in use
Sets up a table to keep track of who is using which section of memory.
Deallocates memory blocks once program completes execution
Protects OS memory space so that it cannot be altered by other programs

Device Manager
Monitors every device, channel, and control unit.
Allocate in the most efficient manner all of the system’s devices (e.g. printers, devices, ports, disk drives) based on a scheduling policy chosen by the system’s designers.
Functions include:
Allocation of devices
Starting operation of devices
Deallocation of devices once job completes

File Manager
Keeps track of each file in the system (e.g. data files, program files, compilers, application programs)
Allocate resources (e.g. opening files) and deallocate resources (e.g. closing files)
Uses predetermined access policies to enforce restrictions on who has access to which files

Example:
Restrictions on each file – system only, user only, group only, general access
User restriction – read only, read/write only, allowed to create file, allowed to delete file

7. Types of Operating Systems
Operating systems can be divided into five categories based on their response time and how data is entered into the system:

a. Batch Systems
Jobs processed serially without user interaction
Efficiency is measured in throughput ,i.e. the number of jobs completed in a given a mount of time (e.g. 550 jobs per hour)

Example:
Preparation of a weekly payroll for an organization whereby time cards are collected, data entered and processed, paychecks and reports are then printed

b. Interactive Systems (also sometimes referred to as time-sharing systems)
User interacts directly with the operating system via commands entered from the keyboard
Operating system provides immediate feedback to the user.
Response time can be measured in fractions of a second.

Example:
Banks’ automatic teller machines (ATMs) which provides immediate cash and transaction details for its users.

c. Real-Time Systems
Extremely fast systems which are used in time-critical environments where reliability is a major factor and data must be processed within a strict time limit.
Usually a real-time system is a dedicated system which spends all or most of its time on a single job.
Must be 100% responsive 100% of the time.

Example:
Air traffic control system used by the airport authority such as the radar system

d. Hybrid Systems
A combination of batch and interactive systems.
Appear to be interactive because individual users can access the system and get fast responses but actually accepts and runs batch programs in eh background when the interactive load is light.
Takes advantage of the free time between high-demand usage of the system and low-demand times.
Many large computer systems are hybrids.

e. Embedded Systems
Embedded systems are computers placed inside other products to add features and capabilities.

Example:
In automobiles, embedded computers can help with engine performance, braking and navigation.

f. Utility Programs
Most operating systems use a set of utility routines such as : linkage editors loaders line editors disk formatting modules sort routines debugging features library management routines

HARDWARE TECHNOLOGY

8. Basic unit of data representation
Bits are grouped to form bytes, which in turn are grouped to form words.

Bit: one binary digit (0 or 1).
Byte: eight bits (1 character).
Word: a group of bytes.

9. Basic elements of computer system - I/O Unit, Memory and Processor

9.1 Memory
Memory holds active programs and data. A program must be stored in memory before it can be executed. Data must be stored in memory before the computer can manipulate them.
Memory write is a destructive operation.
Memory read is not destructive.

Addressing Memory
Memory capacity is usually measured in megabytes. To distinguish them, each byte (or word) is assigned a unique address.
The bytes (or words) are numbered sequentially – 0,1, 2 , etc.
Bytes (or words) are the basic addressable units of memory.
The processor accesses a specific memory location by referencing its address.

Example:
If the processor needs the data stored in byte 1048, is asks memory for the contents of byte 1048. Since there is only one byte 1048, the processor gets the right data.

Depending on the computer, bytes or words are the basic addressable units of memory. Data move between the processor and memory one byte or one word at a time.

Memory Addresses

Memories consist of a number of locations (cells) each of which can store a piece of information.
Each location has a number called address.
If a memory has n locations (cells), they will have addresses 0 to n-1.
All locations in the memory contain the same number of bits.
If a location of k bits, it can hold any one of 2 different bit combinations ( k bits => can holding 2k combinations)

The Operation of Memory

The Memory Address Register (MAR) and Memory Data Register (MDR) act as an interface between the CPU and Memory, whereby each cell in the memory unit holds one bit of data. The cells in Figure 1 are organized in rows. Each row consists of a group of one or more bytes. Each group represents the data cells for one of more consecutive memory addresses. (AD is Address Decoder)

One or more bytes bit 0 000 001

address line

bit n 2n -1

Figure 1. The relationship between the MAR, MDR and Memory

The memory address register holds the address in the memory that to be
“opened” for data.

The MAR is connected to decoder that interprets the address and activates a single address line into memory.

There is separate line for each group of cells in the memory; thus if there are n bit of addressing there will be 2 address lines.

The memory data register is designed such that it is effectively connected to every cell in the memory unit. Each bit of the MDR is connected in a column to corresponding bit of every location in memory.

However, the addressing method assures that only a single row of cells is activated at any given time.

If a machine has a 4GB memory data register (MDR), then 32 bits are used for the value of that memory buffer. 4GB = 22 × 230 = 232
Therefore 32 bits are used

If a machine use 33 bits for memory data register, then the capacity of memory buffer is 8GB ( 23 × 230)

Because 233 is equivalent to 8GB

Note: (1KB is 210, 1MB is 220, and 1GB is 230)

If a machine has a 64-bit memory address register (MAR), then the machine can address 264 addresses and 264 – 1 is the last memory address location. If the memory address register value is 1000101 then the memory location is 69

If the memory address register value is 1100111 then the memory location is 103,

If the memory location is 65 and assume 7 bits are used in memory address register (MAR) then the binary content of MAR is 1000001
9.2 Cache Memory

Cache memory is a staging area for the processor.

The program is stored in standard RAM. As the program executes, the active instructions and the active data are transferred to high-speed cache memory. From there, individual instructions and data referenced by those instructions move from cache to the processor, consequently, the processor waits for high-speed cache instead of slower RAM and that increases processing speed.

Note:
ROM (Read-Only Memory) is a non-volatile form of storage while RAM (Random Access Memory) is a volatile type of storage.

9.3 The Processor

The processor manipulates data stored in memory under the control of a program stored in memory.

A program is a series of instructions. Each instruction has an operation code and one or more operands.

Note:
An operation code specifies the function to be performed while an operand is the portion of an instruction that specifies the memory locations or registers holding the data to be manipulated.
The processor contains four key components.

The instruction control unit (ICU) fetches instructions from memory.
The arithmetic and logic unit (ALU) consists of the circuits that add, subtract, multiply, and so on (the computer’s instruction set). It executes instructions.
Registers are temporary storage devices in the processor that hold control information, key data and intermediate results.
The clock generates precisely timed electronic pulses that synchronize the other components.

9.4 Input and Output

Input
The act of transferring data into memory from a peripheral device.

Output
The act of transferring data from memory to a peripheral device.

Input and Output
Support human interaction with a computer.

The input/output control system (IOCS) communicates directly with the computer’s peripheral devices.

(The command processor is the operating system module that accepts, interprets and carries out commands)

The input/output control system generates the primitive commands that control the peripheral device.

(Primitive command – a low-level operation that causes a peripheral device to perform a single task)

Logical I/O the programmer’s view-one logical record
Physical I/O the transfer of a physical record between memory and a peripheral device

9.5 Memory Capacity and Processor Speed

On most systems, the internal components are designed around a common word size.
Example:
On a 32-bit computer, the processor manipulates 32-bit numbers, memory and the registers store 32-bit words, and data and instructions move between the components over a 32-bit bus.

A computer’s word size affects its processing speed, memory capacity, precision, instruction set size, and cost.

Example of how word-size can affect processing speed6

A 32-bit bus contains 32 wires and thus can carry 32 bits at a time. A 16-bit bus has only 16 parallel wires and thus can carry only 16 bits at a time. Because the bus moves twice as much data in the same amount of time, the 32-bit machine is clearly faster. Generally, the bigger the word size the faster the computer is.

Example of how memory capacity can be affected by word size

To access memory, the processor must transmit over a bus the address of desired instruction or data element.
On a 32-bit machine, a 32-bit address can be transmitted. The biggest 32-bit number is roughly 4 billion in decimal terms, so the processor can access as many as 4 billion different memory locations.
A 16-bit computer transmits a 16-bit address, limiting it to roughly 64,000 memory locations.
Generally, the bigger its word size, the more memory a computer can address.

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Computers systems are an essential piece of equipment in many people’s everyday lives they have to deal with a lot of processes information and be able to go on the internet where there is a risk of getting viruses and bugs. This is why computer systems have to be equipped with the right software utilities to ensure that they are working at their best at all times. There are many different types of software utilities available for a computer system I will explain them in detail in this report.…

    • 518 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 1 Assignment

    • 4639 Words
    • 19 Pages

    Typically this constitutes an interface for communicating with the device, through the specific computer bus or communications subsystem that the hardware is connected to, providing commands to and/or receiving data from the device, and on the other end, the requisite interfaces to the operating system and software applications. It is a specialized hardware-dependent computer program which is also operating system specific that enables another program, typically an operating system or applications software package or computer program running under the operating system kernel, to interact transparently with a hardware device, and usually provides the requisite interrupt handling necessary for any necessary asynchronous time-dependent hardware interfacing…

    • 4639 Words
    • 19 Pages
    Powerful Essays
  • Good Essays

    | Two or more computers connected to each other, that allows you to share files, information and communication between different computers in different locations…

    • 429 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    It stands for basic input/output system and it is is the program a computer's processor uses to get the computer system started after it is switched on. It also controls data flow between the computer's operating system and attached devices. It also tells the CPU where the OS is.…

    • 1180 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Unit 5 research paper

    • 297 Words
    • 2 Pages

    (FPU) which is a microprocessor inside the CPU. This basically helps the computer figure out…

    • 297 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Assingment 1

    • 663 Words
    • 3 Pages

    Operating system software is what manages all the hardware components that make it possible to run on the computers. Example: Windows, Linux…

    • 663 Words
    • 3 Pages
    Good Essays
  • Good Essays

    P3 and D1 Assignment 1

    • 1224 Words
    • 3 Pages

    The purpose of different software utilities and how they can improve the performance of a computer system…

    • 1224 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Computer Concepts Exam 1

    • 951 Words
    • 4 Pages

    According to the textbook authors, what type of software serves as the interface between the user, application software, and the computer's hardware? System Software…

    • 951 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Personal Computers Dq

    • 270 Words
    • 2 Pages

    As you have discovered, there are a variety of computers available, from the smallest computer in a domestic device to the supercomputers used in industry. Despite the different uses of computers, they all have basics elements in common- each computer system involves hardware, software, data, & users. Think about the role of each component of your home or work computer. How do the components of your computer system interact within the system? What improvements or additions to your system do you think would benefit you or make the system more user-friendly? Why?…

    • 270 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Given a specific description of hardware, systems software, and application software components of a computer-based system, identify and assess the controls we expect to find in each of the system components and describe how they function.…

    • 360 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Cafr

    • 1428 Words
    • 6 Pages

    Application software is a defined subclass of computer software that employs the capabilities of a computer directly to a task that the user wishes to perform. It utilizes the capacities of a computer directly for a dedicated task. Application software is able to manipulate text, numbers and graphics. It can be in the form of software focused on a certain single task like word processing, spreadsheet or playing of audio and video files. Here we look at the application software types along with some examples of application software of each type. This should be contrasted with system software which is involved in integrating a computer 's various capabilities, but typically does not directly apply them in the performance of tasks that benefit the user.…

    • 1428 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    An operating system is responsible for assigning memory to processes so that processes can be executed. Broadly, this responsibility is defined as memory management, and operating systems handle memory management differently. Any operating system must do two things in order to handle memory effectively. First, an operating system must be able to allocate and free physical memory. Second, an operating system must have techniques in place to keep track of the location of programs in physical memory. Examples of the ways different operating systems handle memory management can be seen by evaluating the Linux and the Windows 7 operating systems.…

    • 603 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Computers have been around since the dawn of mankind in the form of our brains. In the past few hundred years we have been creating computers to help us handle our increasing demands for automation tasks. From simple computers that can do one thing to complex interconnected systems that can do so much they are able to truly multitask. This multitasking requires proper memory management and for that we have software called an Operating System, whose job is to manage the environment in which automated tasks will be conducted.…

    • 900 Words
    • 3 Pages
    Better Essays
  • Powerful Essays

    Introduction to Os

    • 2878 Words
    • 12 Pages

    Computer system can be divided into four components Hardware – provides basic computing resources CPU, memory, I/O devices Operating system Controls and coordinates use of hardware among various applications and users Application programs – define the ways in which the system resources are used to solve the computing problems of the users Word processors, compilers, web browsers, database systems, video games Users People, machines, other computers…

    • 2878 Words
    • 12 Pages
    Powerful Essays
  • Good Essays

    Computer in Technology

    • 903 Words
    • 4 Pages

    Subroutine and Function a open source video editing program a program that loads software for the operating system to start. Example: BIOS Copies the values or data from one cell to another language that enables separation of document content carries out instructions and data manipulation, can do one thing at a time Green Screen Encodes a data stream or signal for…

    • 903 Words
    • 4 Pages
    Good Essays