Operating System _lecture_me_(2)
Operating System _lecture_me_(2)
Acco u nta bility ()المسؤولية: How to charge for/ restrict use resources (?) تحديد أستخدام المصادر
Concurrency:
It can be regarded as the activation of several processes (that is the execution of
several programs) at the same time. If there are fewer processors than processes,
then concurrency can be obtained by switching processors from one process to
another. If the switching is done at small intervals of time the system will give the
illusion of concurrency when viewed on a longer scale of time. إذا كان عدد المعالجات أقل من
عدد العميات
Supervisor Mode:
All instruction is allowed
Kernel routines execute in supervisor mode.
The OS must access all feature of the system .
User Mode:
Not all in instructions are allowed.
User program s execute in user mode.
Some instruction cannot be executed (invoked) directly by
user programs.
Switching:
I/O Operations:
Phase 1: Prepare the device for the operation.
Phase 2: Wait for the operation to be performed.
Phase 3: Complete the operation.
P1
P4 P2
P3
..
…
…