250 likes | 395 Views
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.
E N D
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. • Process may contain 1 or more threads. • Synchronization mechanisms for both process and thread objects are built-in.
Process contents in windows The basic contents of a process is • Access Token • Virtual Address Descriptors • Object Table
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.
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.
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.
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
Thread States • Ready • Standby • Running • Waiting • Transition • Terminated
Solaris Thread & SMP Management
Thread Concepts • Process • User-Level Threads • Lightweight Processes • Kernel Threads
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
Thread Execution States • An Active ULT may be in the following states (events that may occur) • Synchronization • Suspension • Preemption • Yielding
Linux task_struct
Contents of Linux task_struct • State • Scheduling information • Identifiers • Inter process communication • Links • Times and timers • File system • Address Space • Processor Specific Context
Contents of Linux task_struct • Running • Interruptible • Uninterruptible • Stopped • Zombie