Professional Documents
Culture Documents
2- A computer system can be divided roughly into four components: the hardware, the
operating system, the application programs, and the users.
3- The user viewpoint focuses on how the user interacts with the operating system through the
usage of various application programs. In contrast, the system viewpoint focuses on how the
hardware interacts with the operating system to complete various tasks.
4- Memory hierarchy are : register, cache memory, main memory, electronic disk, magnetic
disc, optical disk and magnetic tape.
5- multiprocessor systems/ parallel systems / multicore system, and its advantages are:
2- Simple Structure: the systems don't have well- defined structure such operating systems
begins as small, simple & limited systems and then grow beyond their original scope.
e.g MS-DOS
3- OS is broken into a number of layers (levels) each built on top of lower layers
- e.g UNIX OS
Layers: Functions
5 User program
4 I/O management
3 Operator Process communication
2 Memory management
1 CPU Scheduling
0 Hardware
4- Microkernel System Structure: This method structures the operating system by removing all
nonessential components from the kernel and implementing them as system and user-level
programs.
- The main function of the microkernel is to provide a communication facility between the client
program and the various services that are also running in user space.
CHAPTER 3: Proccess
1- process: is an instance of a program in execution.
3- Process States:
5- Scheduler: A process migrates between the various scheduling queues throughout its life-
time purposes.
6- Types of scheduler:
8- The short term scheduler selects among the process that are ready to execute & allocates
the CPU to one of them.
10- When CPU switches to another process, the system must save the state of the old process
and load the saved state for the new process via a context switch.
11- A process control block contains many pieces of information associated with a specific
process. It includes:
13- process creation: A process may create several new processes, via a create-process system
call, during the course of execution. The creating process is called a parent process, and the
new processes are called the children of that process.
explaining.......
When a process creates a new process, two possibilities exist in terms of execution:
The parent waits until some or all of its children have terminated.
There are also two possibilities in terms of the address space of the new process:
The child process is a duplicate of the parent process (it has the same program and data
as the parent), The child process has a new program loaded into it
14- Process Termination: A process terminates when it finishes executing its final statement
and asks the operating system to delete it by using the exit() system call.
another way to achieve the same effect is for the operating system to provide the
means for cooperating processes to communicate with each other via a messagepassing
facility.
A message-passing facility provides at least two operations:
a- Send (message) b- receive(message).
Here are several methods for logically implementing a link and the send()/receive()
operations:
o Direct or indirect communication
o Synchronous or asynchronous communication
o Automatic or explicit buffering
Physical:
a- Shared memory b- Hardware bus c- Network
• Logical:
Messages are directed and received from mailboxes (also referred to as ports)
a- Each mailbox has a unique id
b- Processes can communicate only if they share a mailbox
23- Synchronous:
24- Buffering: