Operating system. Processes презентация
Содержание
- 4. Introduction מערכות המחשב (ומערכות ההפעלה) הראשונות: אפשרו הרצת תכנית אחת (בלבד)
- 5. מטרות השיעור להציג את ה"תהליך" (process) – תוכנית בהרצה (program in
- 6. Process Concept בקורס נשתמש במושגים job ו- process כחליפיים Jobs –
- 7. Process in Memory
- 8. Program and Process
- 9. Process State במהלך ריצתו משנה התהליך את מצבו (state): new: The
- 10. Diagram of Process State
- 11. Process Control Block (PCB) Information associated with each process Process state
- 12. CPU Switch From Process to Process
- 13. Process Scheduling Queues המטרה – שבכל עת יהיה תהליך שיכול לרוץ
- 14. Ready Queue And Various I/O Device Queues
- 15. Representation of Process Scheduling
- 16. Schedulers Long-term scheduler (or job scheduler) – selects which processes should
- 17. Schedulers (Cont) ה- short-term scheduler נכנס לפעולה בצורה תדירה (כל מספר
- 18. Schedulers (Cont) תהליכים מאופיינים כ: I/O bound – מבלים את רוב
- 19. Context Switch כאשר המעבד עובר לטפל בתהליך אחר, המערכת חייבת לשמור
- 21. Process Creation Creating a process – using create process system call
- 22. Process Creation (Cont) Execution Parent and children execute concurrently Parent waits
- 23. Process Creation
- 24. C Program Forking Separate Process int main() { pid_t pid; /*
- 25. Process Termination בסיום פעולתו נדרש התהליך להריץ את הפקודה exit: מערכת
- 26. Interprocess Communication תהליכים צריכים דרך לחלוק ולשתף מידע ביניהם: בין שרצים
- 27. Communications Models
- 28. Producer-Consumer Problem Paradigm for cooperating processes, producer process produces information that
- 29. Bounded-Buffer – Shared-Memory Solution Shared data #define BUFFER_SIZE 10 typedef struct
- 30. Bounded-Buffer – Producer while (true) { /* Produce an item
- 31. Bounded Buffer – Consumer while (true) { while (in
- 32. Interprocess Communication – Message Passing מהווה מכאניזם לתקשורת וסנכרון בין תהליכים
- 33. Direct Communication Processes must name each other explicitly: send (P, message)
- 34. Indirect Communication Messages are directed and received from mailboxes (also referred
- 35. Indirect Communication Operations create a new mailbox send and receive messages
- 36. Indirect Communication Mailbox sharing P1, P2, and P3 share mailbox A
- 37. Synchronization מנגנון ה- message passing יכול להיות מאופיין כ- blocking or
- 38. Buffering Whether direct or indirect, messages must reside in a queue;
- 39. Communications in Client-Server Systems Sockets Remote Procedure Calls Remote Method Invocation
- 40. Sockets A socket is defined as an endpoint for communication Concatenation
- 41. What is a socket? An interface between application and network The
- 42. Socket Communication
- 43. Remote Procedure Calls Remote procedure call (RPC) abstracts procedure calls between
- 44. Remote Method Invocation Remote Method Invocation (RMI) is a Java mechanism
- 45. Marshalling Parameters
- 47. Скачать презентацию













































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