Communication is the sharing of information by one task with another The most

Communication is the sharing of information by one

This preview shows page 6 out of 6 pages.

Communication is the sharing of information by one task with another. The most basic communication method involves one task writing to a global variable and another task (or multiple tasks) reading that variable – the variable is shared A handshake is a method for task X to cause task Y to carry out some behavior. Message passing is the communication behavior of sending a data item from a sender task to a receiver task such that the item is treated as a distinct message that is transferred. Data is always written to the rear of the queue (called a queue push ), while data is always read from the front of the queue (called a queue pop ). The term FIFO is commonly used instead of queue, short for first-in first-out A queue with no data items is said to be empty and cannot be popped (until after a push) A size N queue with N data items inserted is said to be full and cannot be pushed (until after a pop) A queue is sometimes called a buffer . Items in a queue are said to be queued or buffered .
Image of page 6
  • Fall '13

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes