Operating System 1.2
Operating System 1.2
Chapter 2
< Operating
/ System 22CSH-
} /> [
242 /
>
Presented by:
Dr. Krishnendu Rarhi
Scheduling
Interprocess Communications
Examples
1 0 1 1 0 1 1 0 1 1 0 1 1 0Krishnendu
0 1 1 0 Rarhi
1 1[E9621]]©
011 011 01 110110 110111 1101
APEX Institute of Technology
</ Process Concept
1. An operating system executes a variety of programs:
a. Batch system – jobs
b. Time-shared systems – user programs or tasks
2. Textbook uses the terms job and process almost interchangeably
3. Process – a program in execution; process execution must
progress in sequential fashion
4. Multiple parts
a. The program code, also called text section
b. Current activity including program counter, processor
registers
c. Stack containing temporary data
i. Function parameters, return addresses, local
variables
d. Data section containing global variables
e. Heap containing memory dynamically allocated during run
time
message next_produced;
while (true) {
/* produce an item in next produced
*/
send(next_produced);
}
message next_consumed;
while (true) {
receive(next_consumed);