message-passing

Message passing in a plug-in framework problem

First off, there's a bit of background to this issue available on my blog: http://www.alastairsmith.me.uk/coding/2008/06/25/message-passing-a-plug-framework.html http://www.alastairsmith.me.uk/coding/2008/07/31/message-passing-2.html I'm aware that the descriptions aren't hugely clear, so I'll try to summarise what I'm attempting a...

Message passing between objects - How to refer to the target object?

The most basic task in an object oriented environment is executing a method on an object. To do this, you have to have a reference to the object on which you are invoking the method. Is the proper way to establish this reference to pass the object as a parameter to the constructor (or initializer method) of the calling object? If object...

Convert this Scheme function into a different form?

So here's one way to define a sum as a message passing object: (define (make-sum . exps) (let ((len (length exps))) ;; first handle variable length operands (cond ((= len 0) (make-number 0)) ;; base case for addition ((= len 1) (car exps)) ;; might as well drop the sum if only 1 argument ((> len 2) ...

C#/.Net equivalent of NSNotification

I'm an Objective-C developer porting an application to the .Net world. In my Obj-C application, I use NSNotification objects to communicate asynchronously between a handful of objects. Is there some way to do something similar in the .Net world (more specifically, using the C# language)? The fundamental approach is that one object posts ...

How do I find out the path of the file triggered by opening a file with a custom file extension?

How do i get the location of the file that i used to open my programs with? Example: if i create a new extention ".xyz" say and i tell windows that i want to open the file type .xyz with myapplication, then it starts my aplication. Great, but how does my application get a handle on the file path of the file that was used to start it? ...

How do I send a string from one instance of my Delphi program to another?

What is the best and easiest way to send a string from one instance of my program to another instance of my program? The receiving program has to execute a procedure, using the received string as a parameter. I started reading about DDE but I got confused. What other options do I have, and what is the easiest way to implement this? ...

Performances evaluation with Message Passing

Hi, I have to build a distributed application, using MPI. One of the decision that I have to take is how to map instances of classes into process (and then into machines), in order to take maximum advantages from a distributed environement. My question is: there is a model that let me choose the better mapping? I mean, some arrangement...

Choosing a consistency model for a concurrent programming language

I am in the design phase of a programming language, currently thinking about the concurrency aspects. I need to figure out a consistency model, i.e. how data is handled by concurrent processes programmed in this language. There are two important criteria: I prefer ease-of-use over performance, as long as the consistency model allows g...

Java: appropriate way to pass messages between client and servlet?

My system successfully passes objects from a client to servlet. However it is primitive as it was built to cater for Java 1.1. The message object it passes consists of an int (representing one of about seventy types) and a String of tokens which need to be parsed (the tokens may contain a list, a list of objects, etc). Not good! So, I'm...

what are the disadvantages of RPC with respect to message passing?

what are the disadvantages of RPC with respect to message passing? ...

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 this is new territory for me. It may help to give an example of a message we'd like to pas...

OOP - Message Passing in C#

What is the example of the OOP concept 'Message Passing' in C# (calling methods/Passing parameters/Firing Events/Handling Events/???) and why is it called message passing? ...

What is the fasted method to pass messages between different processes in C#?

I have a bunch of AddIns loaded by the Microsoft AddIn Framework all in separate processes. Packets come in from the one side (also an AddIn) then get send to a controller (also an AddIn) that coordinates the process of the packet. The controller then sends the packet to multiple other AddIns one by one, depending on the content and the...

What makes Erlang suitable for soft real-time applications?

Some background I'm working on building a programming language for digital media programming, which should support concurrency using no-sharing message passing and soft real-time (i.e. do your best to compute audio/video without losing samples or frames and with a constant throughput). It turns out that both these features are surprisi...

When is messaging (e.g. JMS) an alternative for multithreading ?

I work on a data processing application in which concurrency is achieved by putting several units of work on a message queue that multiple instances of a message driven bean (MDB) listen to. Other then achieving concurrency in this manner, we do not have any specific reason to use the messaging infrastructure and MDBs. This led me to th...

OpenCV Multi-Threaded Thread Message

I am writing a program using .Net 3.5 and OpenCV 1.1. I have multiple threads that need to get an image variables from the web camera on my computer, the problem being I get memory violation errors when multiple threads try to access the camera at the same time. I know I can use PostThreadMessage and GetMessage to send a variable to the ...

Single instance app with message passing via cmd line?

I have a C# app that is launched via command line. Usually data is pass through the command line such as add (app -a string). I would like only ONE instance of the app to be opened and if more strings are added via command line i would like the single instance to know about it and update itself. I can either put the data into the databas...

Objective-C "messages" - what's the right way to read it?

You can declare a method in objective-c and name each parameter twice, basically. I get the idea that this is powerful, but I'm not quite sure how to use it yet... When John Greets Kelly: [ p Greet:"John" toPerson:"Kelly" greetWith:"hey babe" ] ; Something about it doesn't read naturally. I'm not sure if that's how an experienced ob...

What's the difference between the message passing and shared memory concurrency models?

Correct me if I'm wrong, but I'm surprised this hasn't been asked before on here ... ...

How to choose the "Key" for inter-processes communication in Linux?

Good Day... I am doing a homework which states that I have 5 processes; a server and the rest are clients. Each process is supposed to be sparked from a different executable. I am going to implement a two-way message passing solution, but the question is not about message passing per se. Is there an elegant way to communicate the key be...