windows wista

39
1 Windows Vista History Programming System structure Processes and threads Memory management Input/output File system Security Caching

Upload: stjepansalopek

Post on 20-Dec-2015

232 views

Category:

Documents


2 download

DESCRIPTION

Windows Vista

TRANSCRIPT

Page 1: Windows Wista

!1

Windows Vista

History!Programming !System structure !Processes and threads !Memory management !Input/output !File system !Security !Caching!

Page 2: Windows Wista

!2

Windows history

Page 3: Windows Wista

!3

Windows NT

Some differences between Windows 98 and Windows NT

Page 4: Windows Wista

!4

Windows 2000 (2)

Comparison of some operating system sizes

Page 5: Windows Wista

!5

The Win32 Application Programming Interface

The Win32 API allows programs to run on almost all versions of Windows

Page 6: Windows Wista

!6

Programming layers

Page 7: Windows Wista

!7

The Registry (1)

• Top level keys and selected subkeys!• Capitalization has no meaning but follows Microsoft practice.

Page 8: Windows Wista

!8

The Registry (2)

Some of the Win32 API calls for using the registry

Page 9: Windows Wista

!9

The Operating System Structure

• Structure of Windows 2000 (slightly simplified).!• Shaded area is executed!• Boxes, D, are device drivers!• Service processes are system daemons

Page 10: Windows Wista

!10

The Operating System Structure

• Structure of Windows Vista (slightly simplified)

Page 11: Windows Wista

!11

Hardware Abstraction Layer

Some of the hardware functions the HAL manages

Page 12: Windows Wista

!12

Implementation of Objects (1)

The structure of an object

Page 13: Windows Wista

!13

Implementation of Objects (2)

Some common executive object types! managed by the object manager

Page 14: Windows Wista

!14

The Object Name Space

Some typical directories in the object name space

Page 15: Windows Wista

!15

Processes and Threads (1)

Basic concepts used for CPU and resource management

Page 16: Windows Wista

!16

Processes and Threads (2)

Relationship between jobs, processes, threads, and fibers

Page 17: Windows Wista

!17

Job, Process, Thread & Fiber Mgmt. API Calls

Some of Win32 calls for managing processes, threads and fibers

Page 18: Windows Wista

!18

Scheduling (1)

Mapping of Win32 priorities to Windows priorities

Page 19: Windows Wista

!19

Scheduling (2)

Windows supports 32 priorities for threads

Page 20: Windows Wista

!20

An example of priority inversion

Scheduling (3)

Page 21: Windows Wista

!21

Memory management

• Virtual address space layout for 3 user processes!• White areas are private per process!• Shaded areas are shared among all processes

Page 22: Windows Wista

!22

• Mapped regions with their shadow pages on disk!• The lib.dll file is mapped into two address spaces at same time

Memory management

Page 23: Windows Wista

!23

Memory Management System Calls

The principal Win32 API functions for mapping virtual memory in Windows 2000

Page 24: Windows Wista

!24

Input/Output API Calls

Categories of Win32 API calls

Page 25: Windows Wista

!25

Device Drivers

Windows allows drivers to be stacked

Page 26: Windows Wista

!26

File System API Calls in Windows 2000 (1)

• Principal Win32 API functions for file I/O!• Second column gives nearest UNIX equivalent

Page 27: Windows Wista

!27

File System API Calls in Windows 2000 (3)

• Principal Win32 API functions for directory management!• Second column gives nearest UNIX equivalent, when one exists

Page 28: Windows Wista

!28

File System Structure (1)

The NTFS master file table

Page 29: Windows Wista

!29

File System Structure (2)

The attributes used in MFT records

Page 30: Windows Wista

!30

File System Structure (3)

An MFT record for a three-run, nine-block file

Page 31: Windows Wista

!31

File System Structure (4)

A file that requires three MFT records to store its runs

Page 32: Windows Wista

!32

File System Structure (5)

The MFT record for a small directory.

Page 33: Windows Wista

!33

File Name Lookup

Steps in looking up the file C:mariaweb.htm

Page 34: Windows Wista

!34

File Compression

(a) An example of a 48-block file being compressed to 32 blocks!(b) The MTF record for the file after compression

Page 35: Windows Wista

!35

File Encryption

Operation of the encrypting file system

K retrieved

user's public key

Page 36: Windows Wista

!36

Security in Windows 2000

Structure of an access token

Page 37: Windows Wista

!37

Security API Calls (1)

Example security descriptor for a file

Page 38: Windows Wista

!38

Security API Calls (2)

Principal Win32 API functions for security

Page 39: Windows Wista

!39

Caching in Windows 2000

The path through the cache to the hardware