CGS 3763 Operating Systems Concepts Spring 2013

Slides:



Advertisements
Similar presentations
Processes Management.
Advertisements

IPC (Interprocess Communication)
CGS 3763 Operating Systems Concepts Spring 2013 Dan C. Marinescu Office: HEC 304 Office hours: M-Wd 11: :30 AM.
©2009 Operačné systémy Procesy. 3.2 ©2009 Operačné systémy Process in Memory.
Chapter 3: Processes.
1/30/2004CSCI 315 Operating Systems Design1 Processes Notice: The slides for this lecture have been largely based on those accompanying the textbook Operating.
Chapter 3: Processes. Process Concept Process Scheduling Operations on Processes Cooperating Processes Interprocess Communication Communication in Client-Server.
02/02/2004CSCI 315 Operating Systems Design1 Interprocesses Communication Notice: The slides for this lecture have been largely based on those accompanying.
Chapter 3: Processes. 3.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts - 7 th Edition, Feb 7, 2006 Chapter 3: Processes Process Concept.
02/01/2010CSCI 315 Operating Systems Design1 Interprocess Communication Notice: The slides for this lecture have been largely based on those accompanying.
Inter-process communication
Chap 3 Processes-Concept. Process Concept Process – a program in execution; process execution must progress in sequential fashion A process includes:
Chapter 3: Processes. 3.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts - 7 th Edition, Feb 7, 2006 Process Concept Process – a program.
3.1 Silberschatz, Galvin and Gagne ©2009Operating System Concepts with Java – 8 th Edition Chapter 3: Processes.
Chapter 3: Processes. 3.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts - 7 th Edition, Feb 7, 2006 Outline n Process Concept n Process.
Chapter 3: Processes. 3.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 3: Processes Process Concept Process Scheduling Operations.
Chapter 3: Processes. 3.2CSCI 380 Chapter 3: Processes Process Concept Process Scheduling Operations on Processes Cooperating Processes Interprocess Communication.
1 11/1/2015 Chapter 4: Processes l Process Concept l Process Scheduling l Operations on Processes l Cooperating Processes l Interprocess Communication.
Processes. Chapter 3: Processes Process Concept Process Scheduling Operations on Processes Cooperating Processes Interprocess Communication Communication.
COT 4600 Operating Systems Spring 2011 Dan C. Marinescu Office: HEC 304 Office hours: Tu-Th 5:00 – 6:00 PM.
Processes CSCI 4534 Chapter 4. Introduction Early computer systems allowed one program to be executed at a time –The program had complete control of the.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Lecture 3 Operating Systems.
Chapter 3: Process-Concept. Process Concept Process Scheduling Operations on Processes Cooperating Processes Interprocess Communication Communication.
3.1 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 3: Processes Overview: Process Concept Process Scheduling Operations on Processes.
CGS 3763 Operating Systems Concepts Spring 2013 Dan C. Marinescu Office: HEC 304 Office hours: M-Wd 11: :30 AM.
 Process Concept  Process Scheduling  Operations on Processes  Cooperating Processes  Interprocess Communication  Communication in Client-Server.
Chapter 3: Processes. 3.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 3: Processes Process Concept Process Scheduling Operations.
XE33OSA Chapter 3: Processes. 3.2XE33OSASilberschatz, Galvin and Gagne ©2005 Chapter 3: Processes Process Concept Process Scheduling Operations on Processes.
Chapter 3: Processes.
Last Class: Introduction
Chapter 3: Process Concept
Chapter 4: Processes Process Concept Process Scheduling
Processes Overview: Process Concept Process Scheduling
Chapter 3: Process Concept
Chapter 3: Processes.
Chapter 3: Processes.
CGS 3763 Operating Systems Concepts Spring 2013
COT 4600 Operating Systems Fall 2010
Chapter 4: Processes Process Concept Process Scheduling
Lecture 2: Processes Part 1
Chapter 3: Processes.
CGS 3763 Operating Systems Concepts Spring 2013
CGS 3763 Operating Systems Concepts Spring 2013
Inter Process Communication (IPC)
Process-to-Process Delivery:
CGS 3763 Operating Systems Concepts Spring 2013
COT 5611 Operating Systems Design Principles Spring 2014
Chapter 3: Processes.
CGS 3763 Operating Systems Concepts Spring 2013
Chapter 3: Processes.
CGS 3763 Operating Systems Concepts Spring 2013
CGS 3763 Operating Systems Concepts Spring 2013
CGS 3763 Operating Systems Concepts Spring 2013
CGS 3763 Operating Systems Concepts Spring 2013
Chapter 3: Processes.
Operating System Concepts
Chapter 3: Processes.
“Processes” By: Maryam Raeisian- 2014
Typically for using the shared memory the processes should:
Chapter 3: Processes.
Process-to-Process Delivery: UDP, TCP
CGS 3763 Operating Systems Concepts Spring 2013
COT 5611 Operating Systems Design Principles Spring 2012
CGS 3763 Operating Systems Concepts Spring 2013
Processes August 10, 2019 OS:Processes.
Presentation transcript:

CGS 3763 Operating Systems Concepts Spring 2013 Dan C. Marinescu Office: HEC 304 Office hours: M-Wd 11:30 - 12:30 AM

Lecture 13 – Wednesday, February 6, 2013 Last time: Process creation and termination Interprocess communication Message passing Today: Networking concepts Next time Client-server systems Remote procedure call Reading assignments Chapters 3 and 4 of the textbook Chapters 3 and 4 textbook slides Lecture 13

Asynchronicity Asynchronous events occur independently of the main program flow. Asynchronous actions  executed in a non-blocking scheme, allowing the main program flow to continue processing. Asynchronous I/O   input/output processing that permits a processing to continue before the I/O operations has finished. Asynchronous processes do not share a clock Asynchronous communication  the sender does not wait to receive an acknowledgment from the receiver. 9/19/2018

Message passing Processes must have a way to refer to each other. Direct communication  a process must explicitly name the recipient or sender of the communication: send(P, message) -Send a message to process P. receive (Q, message)-Receive a message from process Q. Indirect communication  messages are sent to and received from mailboxes, or ports. send (A, message) -Send a message to mailbox A. receive (A, message)-Receive a message from mailbox A. 9/19/2018

Blocking and non-blocking send & receive 9/19/2018

Message queues Processes communicating through message passing implement sending and receiving queues. The queues/buffers: Bounded capacity – Unbounded capacity – 9/19/2018

If a message is sent to a mailbox If the mailbox is not full, the message is copied to the mailbox, and the sending thread continues. If the mailbox is full, the sending thread has four options: Wait indefinitely until there is room in the mailbox. Wait at most n milliseconds. Do not wait at all but rather return immediately. Temporarily cache a message. One message can be given to the operating system to keep, even though the mailbox to which that message is being sent is full. When the message can be put in the mailbox, a message is sent back to the sender; only one such message to a full mailbox can be pending at any time for a given sending thread. 9/19/2018

Networking concepts Protocol – a communication discipline; a set of rules obeyed by two entities to communicate with one another. Internet core and periphery. Internet layered architecture. Peer-to-peer communication; each layer running on one host communicates with its peer running on another host. Multiplexing and de-multiplexing of messages. Message delivery to processes. Lecture 13

Lecture 13

Internet layered architecture Lecture 13

Peer-to-peer communication Lecture 13

Local and wide area networks Lecture 13

Multiplexing, de-multiplexing Lecture 13

Multiplexing and de-multiplexing Lecture 13

Ports and socket Lecture 13

Lecture 13

Communications in Client-Server Systems Sockets Remote Procedure Calls Remote Method Invocation (Java) Lecture 13

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 takes place between a pair of sockets Lecture 13

Socket Communication Lecture 13