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

These are the Lecture Slides of Applied Operating System which includes Swapping, Virtual Memory, Page Replacement Algorithms, Modeling Page Replacement Algorithms, Design Issues for Paging Systems, Implementation Issues, Segmentation etc. Key important points are: Unix and Linux, History of Unix, Overview of Unix, Processes in Unix, Memory Management in Unix, Input/Output in Unix, Unix File System, Security in Unix, System Calls, Flags for Linux Clone

Typology: Slides

2012/2013

Uploaded on 03/21/2013

dheeraj
dheeraj 🇮🇳

5

(4)

101 documents

1 / 32

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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