• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Chapter 1
 

Chapter 1

on

  • 290 views

 

Statistics

Views

Total Views
290
Views on SlideShare
290
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Chapter 1 Chapter 1 Presentation Transcript

    • Lecture 1 Introduction Chapter1
    • What is systems Programming?
      • Simple model: Single User
    • What is systems Programming?
      • Reality: multiple users, multiple programs and multiple devices
    • What is systems Programming?
      • Role of operating system:
        • Manage and protect all the resources and to connect the various devices to the various program .
      Kernel User Space System space
    • What is systems Programming?
      • The operating system is a program.
      • The code for operating system reside in the computer’s memory with other programs created by users.
      • The operating system connects those programs to the outside world.
    • What is systems Programming?
      • Providing Services to Program!
        • Only kernel can access to all the devices
          • Terminal, disks, printers, …
        • Kernel provides service for user programs to access devices
    • Understand systems Programming?
      • The kernel provides access to system resources.
      • System programs use those services directly.
      • Systems resources:
        • Processor
        • I/O
        • Process Management
        • Memory
        • Devices
        • Timers
        • Inter-process Communication
        • Networking
    • Login – How the shell work?
      • If your name and password are correct, the system starts up a program called a shell and connects you to that shell.
      • The shell prompts to tell the
      • user it is ready to run a
      • program.
      • Try date , fortune commands
    • Directory/File
      • ls
      • cd
      • pwd
      • rmdir
      • cat
      • more
      • cp
      • mv
      • File permission
    • Bc – UNIX Desk Top Calcualtor
      • >bc
      • 2+3
      • 5
      • Exit from bc, press Ctrl – D
      • stop a process, press Ctrl - Z
    • more command
        • Show 24 lines from the input
        • Print [more?] message
        • Input Enter, SPACE, or q
        • If Enter, advance one line
        • If SPACE
        • If q  exit
    • more command
      • Code
        • Version 1: more read stdin  more01 does not pause after 24 lines. It reads user command from the same stream as the data.
    • more command
      • Code
        • Version 2: more reads user input from a terminal
        • Connect to the keyboard and screen using /dev/tty