Operating Systems

Table of Contents

What is an OS?

Some history

Batch systems: one job at a time

Multiprogrammed systems: store multiple jobs in memory, with an operating system that schedules, allocates, multiplexes. but one job after another, with a lot of waiting.

Time sharing: single CPU can be passed between jobs, multitasking, illusion of parallelism.

You are not expected to understand this.

What is an OS?

Kernel vs user mode: Screenshot 2018-11-09 at 13.47.46.png

OS is an extended machine — it extends & abstracts over hardware functionality OS is resource manager — protects unsafe use of resources, accounting/limiting

Processes

Memory address space

very basic layout is stack (frames for function calls), data (variables), text (program code)

Screenshot 2018-11-09 at 13.46.40.png

Structure of the OS

screenshot.png

System calls