C 1 2 3 4 5 6 7 8 9 10 11 include csapph int main int

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ogram’s code and data stored in memory, its stack, the contents of its general-purpose registers, its program counter, environment variables, and the set of open file descriptors. Each time a user runs a program by typing the name of an executable object file to the shell, the shell creates a new process and then runs the executable object file in the context of this new process. Application programs can also create new processes and run either their own code or other applications in the context of the new process. A detailed discussion of how operating systems implement processes is beyond our scope. Instead we will focus on the key abstractions that a process provides to the application: ¯ ¯ An independent logical control flow that provides the illusion that our program has exclusive use of the processor. A private address space that provides the illusion that our program has exclusive use of the memory system. Let’s look more closely at these abstractions. 8.2.1 Logical Control Flow A process provides each program with the ill...
View Full Document

Ask a homework question - tutors are online