SAK 3002 - PowerPoint PPT Presentation

1 / 45
About This Presentation
Title:

SAK 3002

Description:

SAK 3002 SAK 3002 Teknologi Maklumat dan Penggunaannya Information Technology and its Application 3. Computer Software - OS Week 3 Ahmad Rodzi Mahmud – PowerPoint PPT presentation

Number of Views:106
Avg rating:3.0/5.0
Slides: 46
Provided by: Armc5
Category:

less

Transcript and Presenter's Notes

Title: SAK 3002


1
SAK 3002
SAK 3002
  • Teknologi Maklumat
  • dan
  • Penggunaannya

Information Technology and its Application
3. Computer Software - OS
Week 3
Ahmad Rodzi Mahmud
2
Lecture Content
  • 1.1 What is an operating system
  • 1.2 History of operating systems
  • 1.3 The operating system zoo
  • 1.4 Computer hardware review
  • 1.5 Operating system concepts
  • 1.6 System calls
  • 1.7 Operating system structure

3
Introduction
  • A computer system consists of
  • hardware
  • system programs
  • application programs

4
What is an Operating System
  • It is an extended machine
  • Hides the messy details which must be performed
  • Presents user with a virtual machine, easier to
    use
  • It is a resource manager
  • Each program gets time with the resource
  • Each program gets space on the resource

5
History of Operating Systems (1)
  • Early batch system
  • bring cards to 1401
  • read cards to tape
  • put tape on 7094 which does computing
  • put tape on 1401 which prints output

6
History of Operating Systems (2)
  • First generation 1945 - 1955
  • vacuum tubes, plug boards
  • Second generation 1955 - 1965
  • transistors, batch systems
  • Third generation 1965 1980
  • ICs and multiprogramming
  • Fourth generation 1980 present
  • personal computers

7
Defn by Wikipedia
  • An operating system (OS) is the software that
    manages the sharing of the resources of a
    computer and provides programmers with an
    interface used to access those resources.

8
What it does ?
  • An operating system processes system data and
    user input, and responds by allocating and
    managing tasks and internal system resources as a
    service to users and programs of the system.

9
Basic OS tasks
  • At the foundation of all system software, an
    operating system performs basic tasks such as
  • controlling and allocating memory,
  • prioritizing system requests,
  • controlling input and output devices,
  • facilitating networking and managing file
    systems.

10
OS Interface
  • Most operating systems come with an application
    that provides a user interface for managing the
    operating system, such as a command line
    interpreter or graphical user interface.

DOS Command LIne
11
Other important function
  • The operating system forms a platform for other
    system software and for application software.

12
Common OS
  • The most commonly-used contemporary desktop and
    laptop (notebook) OS is Microsoft Windows.
  • More powerful servers often employ Linux,
    FreeBSD, and other Unix-like systems. However,
    these operating systems, especially Mac OS X, are
    also used on personal computers.

13
Linux
  • Linux is a Unix-like computer operating system.
  • Linux is one of the most prominent examples of
    free software and open source development
  • source code can be freely modified, used, and
    redistributed by anyone

14
Linux Project
  • There are currently over 300 Linux distribution
    projects in active development, constantly
    revising and improving their respective
    distributions.
  • Fedora (Red Hat),
  • SUSE Linux (Novell),
  • Mandriva Linux
  • Ubuntu

15
History of Operating Systems (3)
  • Structure of a typical FMS job 2nd generation

16
History of Operating Systems (4)
  • Multiprogramming system
  • three jobs in memory 3rd generation

17
The Operating System Zoo
  • Mainframe operating systems
  • Server operating systems
  • Multiprocessor operating systems
  • Personal computer operating systems
  • Real-time operating systems
  • Embedded operating systems
  • Smart card operating systems

18
Computer Hardware Review (1)
Monitor
Bus
  • Components of a simple personal computer

19
Computer Hardware Review (2)
  • (a) A three-stage pipeline
  • (b) A superscalar CPU

20
Computer Hardware Review (3)
  • Typical memory hierarchy
  • numbers shown are rough approximations

21
Computer Hardware Review (4)
  • Structure of a disk drive

22
Computer Hardware Review (5)
  • One base-limit pair and two base-limit pairs

23
Computer Hardware Review (6)
(a)
(b)
  • (a) Steps in starting an I/O device and getting
    interrupt
  • (b) How the CPU is interrupted

24
Computer Hardware Review (7)
  • Structure of a large Pentium system

25
Operating System Concepts (1)
  • A process tree
  • A created two child processes, B and C
  • B created three child processes, D, E, and F

26
Operating System Concepts (2)
  • (a) A potential deadlock. (b) an actual deadlock.

27
Operating System Concepts (3)
  • File system for a university department

28
Operating System Concepts (4)
  • Before mounting,
  • files on floppy are inaccessible
  • After mounting floppy on b,
  • files on floppy are part of file hierarchy

29
Operating System Concepts (5)
  • Two processes connected by a pipe

30
Steps in Making a System Call
  • There are 11 steps in making the system call
  • read (fd, buffer, nbytes)

31
Some System Calls For Process Management
32
Some System Calls For File Management
33
Some System Calls For Directory Management
34
Some System Calls For Miscellaneous Tasks
35
System Calls (1)
  • A stripped down shell
  • while (TRUE) / repeat forever /
  • type_prompt( ) / display prompt /
  • read_command (command, parameters) / input
    from terminal /
  • if (fork() ! 0) / fork off child process
    /
  • / Parent code /
  • waitpid( -1, status, 0) / wait for
    child to exit /
  • else
  • / Child code /
  • execve (command, parameters, 0) / execute
    command /

36
System Calls (2)
  • Processes have three segments text, data, stack

37
System Calls (3)
  • (a) Two directories before linking/usr/jim/memo
    to ast's directory
  • (b) The same directories after linking

38
System Calls (4)
  • (a) File system before the mount
  • (b) File system after the mount

39
System Calls (5)
  • Some Win32 API calls

40
Operating System Structure (1)
  • Simple structuring model for a monolithic system

41
Operating System Structure (2)
  • Structure of the THE operating system

42
Operating System Structure (3)
  • Structure of VM/370 with CMS

43
Operating System Structure (4)
  • The client-server model

44
Operating System Structure (5)
  • The client-server model in a distributed system

45
Metric Units
The metric prefixes
Write a Comment
User Comments (0)
About PowerShow.com