CHAPTER 3:PROCESSES Operating System Concepts with Java-7th Edition,Nov 15,2006 Silberschatz,Galvin and Gagne 2007
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 CHAPTER 3: PROCESSES
CHAPTER 3:PROCESSES o Process Concept o Process Scheduling o Operations on Processes o Cooperating Processes o Inter process Communication o Communication in Client-Server Systems
CHAPTER 3: PROCESSES Process Concept Process Scheduling Operations on Processes Cooperating Processes Inter process Communication Communication in Client-Server Systems
REVIEW o IPC(InterProcess Communication) ·independent(no ipc) ·cooperation(ipc) o information sharing o computation speedup o modularity o convenience 。IPC mechanism o shared memory o message passing ohttp://wenku.baidu.com/course/study/77fldcccda38376ba flfae94#665ea0c7aa00b52acfc7ca94
REVIEW IPC(InterProcess Communication) independent(no ipc) cooperation(ipc) information sharing computation speedup modularity convenience IPC mechanism shared memory message passing http://wenku.baidu.com/course/study/77f1dcccda38376ba f1fae94#665ea0c7aa00b52acfc7ca94
INTERPOSES COMMUNICATION Message Passing Shared Memory process A M process A shared process B M process B 2 1 kernel kernel
INTERPOSES COMMUNICATION Message Passing Shared Memory
SHARED MEMORY o buffer ·unbounded buffer ·bounded buffer
SHARED MEMORY buffer unbounded buffer bounded buffer
MESSAGE PASSING SYSTEM o two operations ·send ·receive o message size ·fixed 。variable o communication link ·physical o shared memory o hardware bus o network ·logical o direct/indirect o synchronous/asynchronous o automatic/explicit buffering
MESSAGE PASSING SYSTEM two operations send receive message size fixed variable communication link physical shared memory hardware bus network logical direct/indirect synchronous/asynchronous automatic/explicit buffering
GOALS FOR TODAY o Communication in Client-Server Systems
GOALS FOR TODAY Communication in Client-Server Systems
CLIENT-SERVER COMMUNICATION o Sockets o Remote Procedure Calls o Remote Method Invocation (Java)
CLIENT-SERVER COMMUNICATION Sockets Remote Procedure Calls Remote Method Invocation (Java)
SOCKETS o A socket is defined as an endpoint for communication o Concatenation of IP address and port o The socket 161.25.19.8:1625 refers to port 1625 on host161.25.19.8 o Communication consists between a pair of sockets
SOCKETS A socket is defined as an endpoint for communication Concatenation of IP address and port The socket 161.25.19.8:1625 refers to port 1625 on host 161.25.19.8 Communication consists between a pair of sockets