Science : Operations Systems ��Process management, scheduling, dispatching and synchronization in an operating system.
PLAN
Managing processes in the operating system
An important characteristic of a process : it is a unit of computation that must be executed sequentially, that is, each process is a sequence of instructions with its own sequential control flow . A process created and managed by the OS contains the following basic information:
Basic concepts of process control subsystem
Main functions of the process control subsystem
Process control unit
Process control unit
Process Control Block (PCB)
Operating system table
Task, process, flow
the CPU ceiling from the process to the process to pass management
The process planning status
winword.exe, notepad.exe, TOTAL64.exe
ready turn and different kind input / output devices
Process – addresses area
0x00000000
0xFFFFFFFF
Virtual
address space
code
(text)
static data
heap
( separated dynamic memory )
Kernel Code and Data
PC
SP
User Space
stack
(dynamically allocated )
Kernel Space
32-bit Linux & Win XP – 3G/1G user space/kernel space
Process – address space
descriptor concept
Transition from one process to another
Transition from one process to another
Queue diagram for
Process planning
Process planning
Process scheduling algorithms
Planning algorithms
Multilevel Queue Scheduling – Many step by step turn
Every one of the turn balance save standing own planning queues there is :
Many step by step turn processes
Interactive processes
Background in mode processes
Queues between planning
- first become all interactive processes will be done then background those in the regime .
- his/her processes between planning for every one MP time to queue one part allocated , for example , 80% of MP time is interactive processes for RR (Round Robin) , 20% background in mode processes via FIFO for .
Systematic
Interactive (“ exactly ”)
Interactive (“ current ”)
Packaged processes
User to work dropped
Many step by step turn again communication with (Multilevel Feedback Queue Scheduling)
Spent time based on planning , if the process is clear quantum time spent If it is dynamic , it is again planned next will be placed .
If necessary fast if done then it is the first " fast " process next falls .
If the average time demand if it does , then middle next falls .
If many time demand If so , then FIFO last next falls .
This on account of processes always queues between move walks . That's why processes for placement and his/her status change need it's not .
Quantum 32 ms
Quantum 64 ms
FIFO
First Come First Serve (FCFS) scheduling algorithm
Synchronization
Let's look at threads in Windows and Linux operating systems and their synchronization mechanisms that prevent access to shared resources .
Control questions
References