|
|
|
Lecture 1 |
|
Introduction To Operating |
|
Systems |
|
|
|
|
|
|
An operating system is a program, or a set
of programs, that manages the operation of the computer. |
|
|
|
|
|
|
An operating system is a program, or a set
of programs, that manages the operation of the computer. |
|
|
|
|
DOS |
|
Windows |
|
UNIX |
|
Linux |
|
MacOS |
|
There are many variants of each |
|
E.g. Windows 9x/ME/NT/2000/Xp |
|
|
|
|
|
Operating Systems manage computer systems. |
|
Super-Computers |
|
Mainframes |
|
Mini-Computers |
|
Micro-Computers (desktop PCs) |
|
Embedded systems (TVs, VCRs, Missiles etc.) |
|
Specialist systems (Medical Equipment etc.) |
|
Different systems require different operating
systems. |
|
|
|
|
The OS provides simplified access to the system
hardware. |
|
User and Software interact with OS NOT the
hardware. |
|
Software can therefore be hardware independent. |
|
|
|
|
Resource Allocation & Scheduling |
|
Memory Management |
|
Backing Store Management |
|
I/O Control |
|
Interrupt Handling |
|
User Interface Handling |
|
Security |
|
Accounting Facilities (User Accounts!) |
|
Provision of Utilities |
|
|
|
|
|
Main Storage |
|
RAM |
|
ROM |
|
Secondary Storage |
|
Hard Disk(s) |
|
Floppy Disk(s) |
|
CD / DVD / CD-RW |
|
CPU |
|
I/O Devices |
|
|
|
|
|
One of the most Important OS tasks is that of
File Management. |
|
Must be able to identify disks |
|
A: Floppy Disk Drive |
|
B: Second Floppy Disk Drive |
|
C: Hard Disk |
|
D: (Usually) CD / DVD Drive |
|
|
|
|
|
Data is stored on the computer as files. |
|
There may be literally thousands of files on a
computer disk. |
|
There are different types of file – |
|
System file |
|
Data file |
|
Program file |
|
|
|
|
|
The files stored on the disk must be organised
in some fashion. |
|
A disk has a file system to store the files
within. |
|
Different operating systems (generally) have
different types of file system. |
|
Win9x – FAT 16 or FAT 32 |
|
WinNT – NTFS |
|
These will be discussed later. |
|
|
|
|
|
We must be able to do certain tasks: |
|
Allow user to organise the files to make
location of them easier. |
|
Prepare and/or repair the file system as needed. |
|
Remove files from the disk |
|
Move and Copy files |
|
View the contents of files (sometimes) |
|
Use files |
|
The OS provides facilities to achieve these
tasks. |
|
|
|
|
|
Used to organise files within the file system. |
|
Also called FOLDERS |
|
Like “real” folders, they store related files |
|
Folders can be stored inside other folders. |
|
This creates a hierarchical file-system |
|
|
|
|
|
|
The file system’s starting point. |
|
Denoted by the character \ |
|
Each drive has a Root directory |
|
A:\ The floppy disk’s root |
|
C:\ The hard disk’s root |
|
D:\ The CD (or DVD) root |
|
|
|
|
Individual files are unique |
|
A file’s name (within a directory) should be
unique |
|
3 Character Extension – in both DOS and Windows |
|
Format: |
|
filename.extension |
|
|
|
|
|
DOS: 8
Chars Max, no spaces |
|
Win 3.11: As above, why? |
|
Win 9x/2000/Xp: 256 chars, spaces allowed |
|
Certain characters can’t be used: |
|
? * |
\ / <
> “ |
|
Look up UNIX and MacOS on Internet |
|
|
|
|
|
|
|
3 Character Extension – in both DOS and Windows. |
|
Some operating systems allow longer extensions. |
|
Extension Describes the file contents. |
|
In Win9x/2000/Xp, extension links the file to
its application executable. |
|
|
|
|
|
|
TXT – Text File |
|
DOC – Word Document |
|
XLS – Excel Spreadsheet |
|
PAS – Pascal File |
|
C – C Programming File |
|
ASM – Assembly Source File |
|
BAT – Batch File |
|
SYS – System File |
|
|
|
|
dir View contents of directory |
|
cd Change directory |
|
md Make directory |
|
rd Remove a directory |
|
del Delete a file |
|
format Format a disk |
|
Often a parameter must be present for the
command to work as required. |
|
|
|