Download The Operating System

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

DNIX wikipedia , lookup

Distributed operating system wikipedia , lookup

Spring (operating system) wikipedia , lookup

Plan 9 from Bell Labs wikipedia , lookup

RSTS/E wikipedia , lookup

Mobile operating system wikipedia , lookup

Burroughs MCP wikipedia , lookup

Process management (computing) wikipedia , lookup

Copland (operating system) wikipedia , lookup

Security-focused operating system wikipedia , lookup

Unix security wikipedia , lookup

CP/M wikipedia , lookup

VS/9 wikipedia , lookup

Transcript
Software
Chapter 2
Computers: Information Technology in Perspective
By Long and Long
Copyright 2002 Prentice Hall, Inc. J. Holvikivi 2012
Software Categories
Quit
System
Software
Application
Software
The Operating System
Quit
Visual
Studio
Operating
Systems
Tax
Planning
GUI
C++
Office
Inventory
CAD
Operating
System
Word
processing
Investment
System
Human
Resource
Mgt.
Computer
Games
Algorithm
2.4
Quit
A
sequence of steps that directs the
execution of a task



A sheet of music
operating instructions for a washing machine
instructions for constructing model airplanes
 Algorithms



in computers
programs
the intelligence required to solve a problem or
to perform a task is encoded in the algorithm
to follow the directions of an algorithm is
"merely mechanical"
Program design
2.5
Quit
Computer science
2.6
Quit





The systematic study of algorithmic processes
that describe and transform information: their
theory, analysis, design, efficiency,
implementation, and application.
Which problems can be solved by algorithmic
processes?
How can the discovery of algorithms be made
easier?
How can the techniques of representing and
communicating algorithms be improved?
How can our knowledge of algorithms and
technology be applied to process better
machines?
Computer science: definitions
2.7
Quit





Computer science is the study of phenomena
related to computers.
Computer science is the study of information
structures.
Computer science is the study and management
of complexity.
Computer science is the mechanization of
abstraction.
Computer science is a field of study that is
concerned with theoretical and applied
disciplines in the development and use of
computers for information storage and
processing, mathematics, logic, science and
many other areas.
Programming Languages
2.8
Quit
 Machine
Language: 56FC
 Assembler (mnemonic): ADD
 Procedural Languages
Fortran,
 Pascal
 Cobol
 BASIC

Programming Languages
2.9
Quit
 Object-Oriented


Languages
C ++
Java, C#
 Functional
languages
• Prolog, XSLT, Haskell
 Application



development tools
.NET Framework
Oracle
UML tools
 Natural
Languages – not yet
The Operating System
Quit
2.10





Coordinates all software activity within a
computer system: The master control program
that runs the computer.
The first program loaded when the computer is
turned on, its main part, the "kernel," resides
in memory at all times.
The operating system sets the standards for all
application programs that run in the computer.
The applications "talk to" the operating system
for all user interface and file management
operations.
Our interaction with the OS is through the
graphical user interface
Examples: DOS, Windows, Unix, Linux, Mac
OS, IBM mainframe OS/390 and the AS/400's
OS/400, iOS, Android
Operating System Objectives
Quit
 Coordinates
all software activity within a
computer system: The master control
program that runs the computer.
 The first program loaded when the
computer is turned on, its main part, the
"kernel," resides in memory at all times.
 The operating system sets the standards
for all application programs that run in the
computer. The applications "talk to" the
operating system for all user interface
and file management operations.
Starting of an operating system
2.12
Quit
 The
start signal: all controllers, starting
registers and program counters are set in
start-state, initialized
 The program counter reads the predetermined address from memory (ROM
program, bootstrap) before starting its
first machine cycle
 The boot program knows where
operating system is located on disk:


- OS is loaded into memory (RAM)
- jump into beginning of operating system
Operating System Objectives
Quit
 Facilitate



communication:
user – computer
computer system components
computer - network
 Maximize
throughput
 Minimize processing time
 Optimize computer resources
 Organize files
 Provide security
 Monitor system/alert user
Operating System Functions
Quit
 1)
Control data (incl. programs) and its
access.
Each such item resides in the computer
system as a collection of records called
a file. OS takes care of manipulation of files
and keeps track on storage of files.
Execution of programs.
 2) Provide for efficient device access.
Includes routines needed to use the
peripheral devices attached to the machine.
To facilitate communication among computer
system components, and to maximize
throughput.
Operating System Functions
Quit
 3)
Manage resources and optimize
their use: memory area, peripheral devices,
programs.
 4) Control access to the machine (access
codes, passwords),
and to provide an envelope of security for
the computer system.
 5) Standardization of the human/ machine
interface (same OS, many machines).
Operating System Features
2.16
Quit
Multitasking
Kernel
Background
Foreground
Operating System Interfaces
2.17
Quit
Text-Based, Command-Driven Software
MS-DOS Syntax
Unix, Linux
Graphics-Based Software
Macintosh
Windows 9x/NT/2003/XP, 7, 8
Graphical User Interface (GUI), Icons
Operating system architecture
2.18
Quit
 Command

processor
monitors input devices (keyboard, mouse)
and interprets commands
 Scheduler

arranges for the execution of the program
 File


manager
management of bulk storage
users' access rights
 Resource
allocator
 Dispatcher

coordination of time-sharing, switching of jobs
Modes of processing
2.19
Quit
 Batch


processing
execution of jobs which are collected together
with their data in a single batch without
interaction with the user
job queue: jobs waiting before being
executed. FIFO (first-in-first-out) and priorities
 Interactive

processing
dialogue with the user, immediate response
 Real-time
processing: response to the
environment
 Multitasking systems

time-sharing
Time-sharing
2.20
Quit
programs waiting in memory
 dispatcher executes a jump to next
program's location (reload registers) &
starts timer circuit


- time slice for program execution 10 to 100
milliseconds
creates a virtual machine for each
process
 slower than real machine
 priorities: longer time slices or more time
slices
 time-sharing within batch processing (mix
of jobs, more even load on resources)

Platforms
2.21
Quit
Platform is defined by
the Processor and Operating System
 90%
use Wintel (Windows & Intel) on PC
 Mac OS
 IBM mainframe OS/390
 IBM AS/400's OS/400
 Unix, Solaris, Linux, Ubuntu
 Mobile platforms:
iOS, Android, WP8, Meego
Platform Problems
2.22
Quit
Long-term
commitment
Interoperability
Cross-platform
technologies
Multiplatform
environment
Unix
2.23
Quit
Bell laboratories, 1970s, universities
 Many versions (AIX, HP-Unix, Linux,
Solaris)



User interface: character based or GUI XWindow
Coded in C- language
Hierarchical file system
root
usr
bin dev - lpt
tmp
Directory structures:
Windows and Linux
2.24
Quit
 D:\Documents
 Eiko




index.html
logo.gif
page2.html
Images



 Users/E/Eiko

Public_html

index.html
logo.gif
page2.html
Images

Photo1.jpg
 Photo2.jpg
Friends



Photo1.jpg
Photo2.jpg

Friends

Myfriend.html

Myfriend.html
<img src="images\photo2.jpg">
<img src="Images/Photo2.jpg">
Linux commands
2.25
Quit




ls -f
list all files including files starting with
a dot (.login .forward etc)
ls -l (or ll) list all files, types and access rights
ls *.txt
list files with extension txt
ls m*.*
list files starting with m
passwd change password
cd <dname> change to directory
Linux commands
Quit
2.26









rm <filename>
remove file
mkdir <dirname>
create/ make directory
rmdir <dirname>
remove/ delete directory
mv <name1> <name2> move or rename file
pwd (print working directory) show current dir
ps
list active processes
kill <name>
terminate process
fg
move to foreground process
exit
Linux commands
2.27
Quit
 chmod
change access rights (+
more, - less)
 Groups: user, group, others, all;
 Rights: none, read, execute, write
 chmod a+r <file> adds read rights to
all users