Professional Documents
Culture Documents
WHAT ?
Process is a program in execution
process execution must progress in sequential fashion
a process includes:
1. program counter
2. stack
3. data section
Process in Memory
operating system process
Schedulers
Long-term scheduler (or job scheduler) selects which
10
11
Process Creation
Parent process create children processes, which, in
turn create other processes, forming a tree of
processes
Process identified and managed by a process
identifier (pid)
12
13
Process Termination
Process executes last statement and asks the OS to delete it (exit)
Output data from child to parent
Process resources are deallocated by OS
Parent may terminate execution of children processes (abort)
Child has exceeded allocated resources
Task assigned to child is no longer required
parent is exiting
Some operating system do not allow child to continue if its parent
terminates
14
Interprocess Communication
Processes may be independent or cooperating (Can
affect or be affected by other processes, including
sharing data)
Why cooperating ?
Information sharing , Computation speedup ,
Modularity, and Convenience
Two models of IPC :
Shared memory & Message passing
operating system - process
15
IPC model
Which one is message passing ?
Which one is Shared memory ?
16
SCHEDULING
Dispatcher
selects from among the processes in memory that are ready to
execute, and allocates the CPU to one of them
18
Scheduling Factor
19
SCHEDULING METHOD
FIRST COME FIRST SERVE (FCFS / FIFO)
SORTHEST JOB FIRST (SJF)
PRIORITY BASED
ROUND ROBIN
20
References
1. Abraham Silberschatz, Peter Baer Galvin, Greg
Gagne, Operating System Concepts With Java,
Wiley
21
Assignment 2
Make report about your experiment in dual boot
Experiment 1 - Windows Linux
1. Explain detail steps to install windows and then linux on the same machine/pc
2. Explain about GRUB, or LILO according to the installation
Experiment 2 Linux windows x
1. Explain detail steps to install linux and then windows on the same machine/pc
2. Is there any difference installation steps between 1st experiment and 2nd
3. How about the GRUB or LILO, is it all right ? or anything is missing ? Explain how to
overcome the missing thing (if there is something wrong)
22
SUBMISSION
Submit your report to elearning
REPORT must contain :
1. Cover page : Student id, and bla bla bla
2. Explanation important step of those experiments
3. References
Format : AS2-<NRP>.pdf (eg. AS2-5214100010.pdf)
23