Processes (Part III) Flashcards
It controls all the events within a computer. It schedules and dispatches processes for execution by the processor, allocates resources to different processes, and responds to requests by user processes for basic services
Operating System (OS)
What are the four (4) different types of tables maintained by an operating system?
- Memory tables
- I/0 tables
- File tables
- Process tables
These are used to keep track of both the main and secondary memory. A part of the main memory is reserved for OS utilization, while the remaining parts are available for the processes’ utilization
Memory table
These are used by the OS to manage the input and output devices and channels of a computer system at any given point of time
I/O tables
These tables hold information regarding the existence of files and its corresponding attributes through a file management system
File tables
These tables are maintained by the OS to manage processes
Process tables
At a minimum, a process must include a program to be executed. Associated to this program is a set of data locations for local and global variables and any defined constants
Process location
A multiprogramming system requires a great deal of information about each process that resides in a process control block. There are different types of information that might be of use to an OS without considering any details as to how that information is organized
Process Attributes
The information in a process control block can be grouped into three (3) categories:
- Process identification
- Process state information
- Process control information
This involves unique numeric identifies that are assigned to specific processes, which can simply be an index into a primary process table, or identifies for cross-referencing process tables
Process identification
This consists of processor registers’ information. During process execution, information is are the registers
Process state information
This contains the additional information needed by the OS to control and coordinate various active processes, such as the data structure, resource ownership and utilization information, and process privileges
Process control information
This is referred to as the less-privileged mode, since user programs execute in this mode
User mode
Specific processes require certain privileges in order to protect the hardware and the OS from impending malfunction
Modes of Execution
This is referred to as the more-privileged mode, where the software has complete control of the processor and its instructions, registers, and memory
Kernel mode