Docsity

UNIX and LINUX - Applied Operating System - Lecture Slides, Slides of Computer Science

Toggle sidebar
bg1
Case Study 1: UNIX and LINUX
Chapter 10
10.1 History of unix
10.2 Overview of unix
10.3 Processes in unix
10.4 Memory management in unix
10.5 Input/output in unix
10.6 The unix file system
10.7 Security in unix
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20

Partial preview of the text

Download UNIX and LINUX - Applied Operating System - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

Case Study 1: UNIX and LINUX

Chapter 10

10.1 History of unix 10.2 Overview of unix 10.3 Processes in unix 10.4 Memory management in unix 10.5 Input/output in unix 10.6 The unix file system 10.7 Security in unix

System Calls for Process Management

s is an error code pid is a process ID residual is the remaining time from the previous alarm

UNIX Scheduler

The UNIX scheduler is based on a multilevel queue structure

Booting UNIX

The sequences of processes used to boot some systems cp

Sharing Files

Two processes can share a mapped file.

A new file mapped simultaneously into two processes

System Calls for Memory Management

  • s is an error code
  • b and addr are memory addresses
  • len is a length
  • prot controls protection
  • flags are miscellaneous bits
  • fd is a file descriptor
  • offset is a file offset

Paging in Linux (1)

Linux uses three-level page tables

Paging in Linux (2)

Operation of the buddy algorithm.

Buddy algorithm

Terminal Management

The main POSIX calls for managing the terminal

UNIX I/O (1)

Some of the fields of a typical cdevsw table

Streams

An example of streams in System V

The UNIX File System (1)

Some important directories found in most UNIX systems

The UNIX File System (3)

  • Separate file systems
  • After mounting (a) (^) (b)

(a) Before mounting. (b) After mounting

Locking Files

(a) File with one lock (b) Addition of a second lock (c) A third lock