The process model презентация
Содержание
- 2. Topics Review system call Introduce the process model To introduce the
- 3. A View of Operating System Services
- 4. Traditional UNIX System Structure
- 5. System Call Implementation Typically, a number associated with each system call
- 6. API – System Call – OS Relationship
- 7. Standard C Library Example C program invoking printf() library call, which
- 8. Processes The Process Model Multiprogramming of four programs Conceptual model of
- 9. What is a process? A process is simply a program in
- 10. Process in Memory
- 11. Process creation Four common events that lead to a process creation
- 12. Termination of a process Normal completion, time limit exceeded, memory unavailable
- 13. Process control Process creation in unix is by means of the
- 14. Process control (contd.) All the above are done in the kernel
- 15. Process Creation (contd.) Parent process create children processes, which, in turn
- 16. Process Creation (Contd.) Address space Child duplicate of parent Child has
- 17. Process Creation (contd.)
- 18. C Program Forking Separate Process int main() { int retVal; /*
- 19. Process Termination Process executes last statement and asks the operating system
- 20. fork and exec Child process may choose to execute some other
- 21. Example if (( result = fork()) == 0 ) {
- 22. Versions of exec Many versions of exec are offered by C
- 23. Process Hierarchies Parent creates a child process, child processes can create
- 24. A tree of processes on a typical Unix system
- 25. A five-state process model Five states: New, Ready, Running, Blocked, Exit
- 26. State Transition Diagram (1)
- 27. Process suspension Many OS are built around (Ready, Running, Blocked) states.
- 28. Process suspension (contd.) Blocked_suspend : The process is in the secondary
- 29. State Transition Diagram (2)
- 30. Implementation of Processes
- 31. Process Control Block (PCB) Information associated with each process Process state
- 32. Process Control Block (PCB)
- 33. CPU Switch From Process to Process
- 34. Context Switch When CPU switches to another process, the system must
- 35. Summary A process is a unit of work for the Operating
- 36. Скачать презентацию


































Слайды и текст этой презентации
Похожие презентации