1 / 25

Maintenance of processes in diff OS s

Maintenance of processes in diff OS s. Naming Presence or absence of threads Process representation Resource protection Inter process relations IPC And Synchronization mechanisms. Windows. Process. Process characteristics in Windows. Process is implemented as objects.

Download Presentation

Maintenance of processes in diff OS s

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. Maintenance of processes in diff OS s • Naming • Presence or absence of threads • Process representation • Resource protection • Inter process relations • IPC And Synchronization mechanisms

  2. Windows Process

  3. Process characteristics in Windows • Process is implemented as objects. • Process may contain 1 or more threads. • Synchronization mechanisms for both process and thread objects are built-in.

  4. Process contents in windows The basic contents of a process is • Access Token • Virtual Address Descriptors • Object Table

  5. Access Token • Created for each process • Will be created when the user logon first • Has the Security ID for the user. • Every process that is created by this user or runs on behalf of this user will have a copy of this access token.

  6. Access Token • Windows uses this access token to validate the user’s ability to access the secured resources. • It controls the process when it is trying to change its own attributes.

  7. Virtual Memory Descriptors • These will be related to the process • These will define the virtual memory address space that is assigned to the current process • These blocks cannot be changed by the process. • If they need to be changed virtual memory manager will change them.

  8. Object Table • This table will have Handles to other Objects known to this process. • One Handles for each thread • Process can also have access to • File Objects • Section Object

  9. Thread States • Ready • Standby • Running • Waiting • Transition • Terminated

  10. Solaris Thread & SMP Management

  11. Thread Concepts • Process • User-Level Threads • Lightweight Processes • Kernel Threads

  12. Solaris Multithreaded Architecture Example

  13. Process Structure

  14. LWP Data structure Contents • LWP Identifier • Priority of this LWP • Signal Mask which tells the kernel which signals will be accepted. • Saved values of user level registers • Kernel stack for LWP • Resource usage and profiling data • Pointer to the corresponding kernel thread • Pointer to the process structure

  15. Thread Execution States • An Active ULT may be in the following states (events that may occur) • Synchronization • Suspension • Preemption • Yielding

  16. Linux task_struct

  17. Contents of Linux task_struct • State • Scheduling information • Identifiers • Inter process communication • Links • Times and timers • File system • Address Space • Processor Specific Context

  18. Contents of Linux task_struct • Running • Interruptible • Uninterruptible • Stopped • Zombie

  19. Thread States

More Related