1 / 11

CSE5306 Distributed Systems

CSE5306 Distributed Systems. Mohan Kumar Operating System Support: Week 4. Operating System components. Network operating system Distributed operating system. OS layer Processes and threads Communicatio n and invocation. Operating System Layer. Applications, services. Middleware.

gerek
Download Presentation

CSE5306 Distributed Systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSE5306 Distributed Systems Mohan Kumar Operating System Support: Week 4

  2. Operating System components Network operating system Distributed operating system OS layer Processes and threads Communication and invocation

  3. Operating System Layer Applications, services Middleware • Middleware is on top of OS layers • OS on a particular node • Provides abstraction of local resources • processing • storage and • communications • Middleware is across on all nodes • Utilizes combinations of local and remote resources • Controls interactions among objects/processes OS1 Processes Threads communications OSn Processes Threads communications Hardware Hardware

  4. OS mechanisms • Encapsulation • OS kernel and server processes • Provide service interfaces to clients • Meet client’s needs, but hide details • Protection • Protect from illegitimate accesses • Write protect, kernel addresses, system registers • Concurrent processing • Sharing of resources among resources • Communication • Remote access to resources • Scheduling • Efficient utilization of resources • Avoid starvation

  5. Core OS Components • Process manager • Creation and operations • Resource management • Address space, threads • Thread manager • Creation, synchronization and scheduling • Threads are attached to processes • Communication manager • Threads on same processor • Threads on remote processors • Memory manager • Physical and virtual • cache • Supervisor • Interrupts • System calls • exceptions

  6. Protection • Illegitimate accesses • Access privileges • Supervisor • User • address space • User process

  7. Processes and threads • Process • Execution environment • Address space • Read/write/execute permissions for threads • Thread synchronization and communication • Semaphores and sockets • Open files and windows • Threads • Thread of execution • Share execution environment • Threads can be created or destroyed dynamically

  8. Processes • New process • Choice of target host • Originating host • Criteria • Load balance • Cost of transfer • Location of host • Host resources • Creation of execution environment • Static • Program, stack, heap etc. • Extent, limits • Relative to an existing execution environment • A child process • Each region from the parent process is inherited

  9. Policies for choice of host • Transfer • Load • Cost of transfer • Location • Static • Relative • Adaptive • Load sharing • Centralized • Distributed • Hierarchical • Sender initiated • Receiver initiated • Migratory load sharing

  10. Threads See textbook for figures • Threads improve throughput • One thread can process a request while another is blocked at I/O • Thread architectures • Worker-pool • Thread-per-request • Thread-per connection • Thread per object

More Related