Process and Threads

Get Started. It's Free
or sign up with your email address
Process and Threads by Mind Map: Process  and Threads

1. Pocesses and Threads

1.1. The unit of dispatching is referred to as a thread or lightweight process

1.2. The unit of resource ownership is referred to as a process or task

1.3. Multithreading- the ability of an OS to support multiple, concurrent paths of execution within a single process

2. Operating System Control Structures

2.1. To manage processes and resources, OS must have information about the current status of each process and resource.

2.2. The OS constructs and maintains tables of information about each entity that it is managing .

2.3. Four different type of maintained by the OS

2.3.1. Memory tables

2.3.2. IO tables

2.3.3. File tables

2.3.4. Proocess tables

3. Process

3.1. Active entity with a program counter specifying the next instruction.

3.2. Process Control Block

3.2.1. Contians the process elements

3.2.2. it is possible to interrupt a running process and later resume execution as if the interruption had not occurred.

3.2.3. Created and managed by the operating system.

3.2.4. Key tool that allows support for multiple process.

4. Process States

4.1. Two-State Process Model

4.1.1. A process may be in one of two states: -Running -Not Running

4.2. Creation

4.2.1. Occurs when a new process is to e added to those currently being managed process

4.2.2. The operating system builds the data structures that are used to managed the process and allocates address space in main memory to the process.

4.2.3. process spawning

4.2.3.1. When the OS creates a process at the explicit request of another process

4.3. Termination

4.3.1. There must be a means for a process to indicate its complettion

4.3.2. A batch job should include a HALT instruction or an explicit OS service call for termination

4.4. Five-State Model

4.5. Suspended Processes

4.5.1. The process is not immediately available for execution

4.5.2. The process was placed in a suspended state by an agent :either itself, a parent process,or the OS ,for the purpose of preventing its execution

4.5.3. The process may or may not be waiting on an event

4.5.4. The process may not be removed from this state until the agent explicitly orders the removal