lab6 notes

lab6 notes - Week 6 system call Processor modes Mode bit...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Week 6 system call Processor modes Supervisor mode : processor can execute privileged instructions User mode : can onloy use subset of instructions Instruction sthat can execute in supervisor mode are supervisor, privileged, or protection instructions -I/O instructions are protected. If an application needs to do I/O, it needs to get the OS to do it on its behalf. _ instructions that can change the protections state of the system are privilegaes (e.g. process authorization staus, pointers to resourses.) Processor modes Mode bit may define areas of The kernel Part of system software exeuting in supervisor state Trusted software: implements protections mechanisms that could not be changed through actions of untrusted software in user space System calls User process requesting privileged operations provide by the OS
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Example system calls Include <unistd.h> Pid_t getpid (void); Retutns the process ID of the calling process
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/01/2009 for the course CS 187105201 taught by Professor Eggert during the Spring '09 term at UCLA.

Page1 / 4

lab6 notes - Week 6 system call Processor modes Mode bit...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online