Example: CPU has 2mn to run all process even the real times is 10mn to finish all process. So CPU doesn't care to finish all process but just do step by steps of given time(2mn). In this case, CPU may need to work 5 times in order to finish all processes. It means that cpu work 2mn for 5 times to complete all processes.
How CPU debug:
CPU need to save the position where it is finished in each 2mn to make sure that it can continue the right position in another 2mn.
content switching
new process ->ready->running->terminatenew process ->ready->running->interrupt->ready->running->terminate
new process ->ready->running->waiting->ready->running->terminate
-copy new process to RAM
-ready to be run but not yet include to Queue
-Schedule dispatch will choose the Ready process and Change status from Ready to Running
Note( waiting: process at first is ready and send to Running but has some problem before running, so put status into waiting and need to do anything to be ready. In this time, CPU doesn't wait such that process instead of call another Ready status to ->Running status. In this time, if the waiting process is ready, it will be called to run when current process is terminated.
Schedule dispatch: role to choose only 1 process in RAM which considered as the suitable one to send to CPU.
How it choose:
-Lattency
-Round robin ( divide equal time to each process and do it till timeout. This doesn't care whether CPU can finished each process or not. After finishing one round, CPU will come back to do the whole process in the limited time.
-FIFO: ( divide not equal time) CPU cares to finished one process and go to another process.
What is computer Network: is the communication of data between process in the same computer or different computer.
Study OS: the technique of communication of process but not to know clearly about how it communicate.
Study Network: explain the concept of the protocol of communication especially the work of protocol in internet network.
Here it is:
PC platform (source ) --------data pocket-------> Macinfosh platform (destination)
Peer to Peer communication: is the communication between two layers in the same floor:
There are 7 layers of OSi
Benefits:
-Reduce complexity
-Standardize interfces
-Facilitates modular engineering
-ensures interperable technology
-Accelerates evolution
-Simplifies teaching and learning