Professional Documents
Culture Documents
Session 1
Administration
Contact details
Administration
Assignments
All homework assignments must be performed individually. Usually 2 weeks per assignment Mostly Windows but few are Linux You have to submit all assignments to be able to approach the exam Late submission fine:
Submission guidelines
Administration
Classes
Each class will consist of 2 parts:
Part I: Review of general OS concept and its Windows/Unix implementation Part II: On-projector development/coding of a Windows application which makes use of the presented concept
Administration
Home
A reasonable PC with XP/Vista Free Download from MS site:
Visual C++ 2010 Express Edition
Windows Essentials
Windows Executables
EXE :Portable Executable File Format What Windows does when you click on executable file?
Read and parse PE file header Allocate resources (e.g. memory) Locate and load libraries (DLL) Map EXE segments (data, code) to the memory Setup an environment (e.g. security) Locate address of start function (main) Call main function
Windows Essentials
Makes system calls to read input from console(e.g. dir string) Makes system calls to fetch list of the files in current directory Makes system calls to print out results
Windows Essentials
Windows object
Window Process Device
Handles
Program that uses an object has a handle to it Multiple handles to the same objects Permissions can be associated with handle Reference counting: OS free objects resources if there are no more handles to it
Windows Development
Win32 files
CreateFile ReadFile WriteFile CloseHandle