Questions tagged [message-passing]

Message passing is a data transfer mechanism that is used in various forms in a number of programming languages

The basic form of data transfer in programming languages is the assignment statement. It is carried out by a (computing) agent that moves data from one part of the memory to another. The substantial difference between assignment and message passing is that message passing incorporates two active agents, a sender and a receiver. The sender has exclusive control over the source locations of the data to be transferred, while the receiver has exclusive control over the destination of the data.

Message passing can be classified by a number of criteria, the most important of which is

  • Mode of operation:

    • Synchronous (also called rendezvous or handshaking): Sender and receiver perform their transfer operations simultaneously. They may have to wait before transfer becomes possible.
    • Asynchronous: Sender is allowed to transfer data to a temporary location where it can be accessed by the receiver. Sender does not have to wait if temporary storage is available.
  • Addressing:

    • Direct: Sender and receiver refer to each other directly, by using unique IDs.
    • Indirect: There is an auxiliary object (channel) that connects the sender and the receiver, who only refer to the channel during message passing.
409 questions
0
votes
1 answer

kaazing publishBasic pass json data and catch it in node.js

kaazing publishBasic pass json data and catch it in node.js Below is the code to publish Data to RabbitMQ via kaazing AMQP librarry var body = new ByteBuffer(); body.putString("new_bidder", Charset.UTF8); body.flip(); var headers =…
Jack Daniel's
  • 2,583
  • 22
  • 28
0
votes
1 answer

Set variable in content script according to message passed from BG page - chrome extension

I've sent a request from my content script and received a response from my background page successfully. Now I want to set a variable in my content script - based on the response. That's where I'm having trouble. Should be simple enough.... I guess…
0
votes
1 answer

Reason for MPI 'rc' variable and MPI_Get_Count()

In the ping-pong program below, what use is the rc variable? It is constantly updated but never used. Plus what does MPI_Get_Count() do? #include "mpi.h" #include int main(int argc, char * argv []) int numtasks, rank, dest, source,…
Adam Lynch
  • 3,341
  • 5
  • 36
  • 66
0
votes
1 answer

can't pass mouse coordinates from content_script to popup (chrome extension)

I hope this isn't to vague... I'm working on my first google chrome extension, with it I'm trying to convert this scriptSee below I made into an extension popup. The idea is that the box which appears on that page on the bottom right, would appear…
0
votes
3 answers

Options for a message passing system for a game

I'm working on an RTS game in C++ targeted at handheld hardware (Pandora). For reference, the Pandora has a single ARM processor at ~600Mhz and runs Linux. We're trying to settle on a good message passing system (both internal and external), and…
sinoth
  • 7,602
  • 3
  • 19
  • 22
-1
votes
1 answer

IPC Message passing (windows)

I've started to learn Inter-process communication mechanisms. It seems that two the most popular are shared memory and message passing, but I can't find any tutorials how to use message passing in Windows. So is there such mechanism in Windows, if…
-1
votes
1 answer

Edit: Will Wasm/WASI implement processes with message passing?

Do the Wasm/WASI developers ever plan on implementing processes that can communicate with each other through message passing in the Wasm/WASI runtimes (without going through the JS runtime)? Old question: Will the WebAssembly runtime be implementing…
Darsunuk
  • 13
  • 3
-1
votes
1 answer

how to route multiple content.js messages multiple background.js listeners?

I have a Chrome extension with a background.js and a content.js. There are two separate times the content.js sends a message to the background.js. Currently, when I send the first request from the content.js, it goes to both of the listeners in the…
codi6
  • 516
  • 1
  • 3
  • 18
-1
votes
1 answer

Message passing between page to extension

So I have script that does not execute on webpage only work in extension, document.getElementById("test").addEventListener("click", function () { var e = document.getElementById("exe"); var strUser =…
-1
votes
1 answer

Passing data from UIView to Viewcontroller immediately Objective-C

I am trying to make an application which makes the user sign a specific area and than save the image to send it inside an E-Mail. But I am having a bit of a struggle with passing the image to my main viewcontroller. This is my code: #import…
09Toine
  • 19
  • 6
-1
votes
1 answer

Obtaining the string value from separate window to be used on another. Objective C

I have a window with a large NSTextFeildCell, where text can be modified. Upon clicking a button another window appears where the text from the original window can be used some how. The issue I am having is when I attempt to retrieve that text the…
-1
votes
2 answers

Message passing from extension to background page

I'm trying to create a page action extension in chrome. I have an html page corresponding to the popup that gets displayed on clicking the page action. I have included a script file popup.js in this html page. From this page I'm trying to send a…
-2
votes
2 answers

Is it possible, in a conceptual level, to realize distribute computing in an assembly/compiled code level?

The goal of this question is to ask if it is possible to have some compiled code (think in terms of an ordinary program, not necessarily written in any special way [e.g multi-threaded] or in any particular paradigm/language) being sent through the…
-2
votes
1 answer

Why is the receiver thread not receiving anything in my Java piped streaming program?

I have 3 very small classes. The main class: import java.io.*; public class ConnectionManager { public static void main(String argv[]) { try { PipedOutputStream pout = new PipedOutputStream(); PipedInputStream…
Manuel
  • 2,143
  • 5
  • 20
  • 22
-2
votes
1 answer

how to run .js file with gmail

function parseEmailMessages(start) { start = start || 0; var threads = GmailApp.getInboxThreads(start, 100); var sheet = SpreadsheetApp.getActiveSheet(); for (var i = 0; i < threads.length; i++) { // Get the first email message of a…
Ali Raza
  • 33
  • 1
  • 9
1 2 3
27
28