C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
Attributes of a processThe Attributes of the process are used by the Operating System to create the process control block (PCB) for each of them. This is also called context of the process. Attributes which are stored in the PCB are described below. 1. Process IDWhen a process is created, a unique id is assigned to the process which is used for unique identification of the process in the system. 2. Program counterA program counter stores the address of the last instruction of the process on which the process was suspended. The CPU uses this address when the execution of this process is resumed. 3. Process StateThe Process, from its creation to the completion, goes through various states which are new, ready, running and waiting. We will discuss about them later in detail. 4. PriorityEvery process has its own priority. The process with the highest priority among the processes gets the CPU first. This is also stored on the process control block. 5. General Purpose RegistersEvery process has its own set of registers which are used to hold the data which is generated during the execution of the process. 6. List of open filesDuring the Execution, Every process uses some files which need to be present in the main memory. OS also maintains a list of open files in the PCB. 7. List of open devicesOS also maintain the list of all open devices which are used during the execution of the process.
Next TopicProcess States
|