COMS 3157 Advanced Programming

11 - Introduction to UNIX

Intro to OS

What is OS?

What does OS do?

How does OS do that?

Software organization

    applications: emacs, gcc, firefox, bash, mdb-lookup-cs3157
    -----------------------------------------------------------------
    library functions: printf(), strcpy(), malloc(), fopen(), fread()
    -----------------------------------------------------------------
    system calls: open(), read(), fork(), signal()
    -----------------------------------------------------------------
    OS kernel
    -----------------------------------------------------------------
    hardware: processor, memory, disk, video card, keyboard, printer

History of OS

1945-1970:

1970: Ken Thompson & Dennis Ritchie invent UNIX and C

Since then, many UNIX variants come and go including:

Currently, four main competitors remain:

OS for personal computers

UNIX Overview

User name, User ID, Group, Permission

File system

UNIX I/O using file descriptors

Processes

Signals (optional topic)