message-passing Questions

4

Solved

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?
Surfboard asked 27/7, 2009 at 16:7

2

I'm trying to use an external process which reads the STDIN, and writes to STDOUT. I want to write the equivalent of this in Elixir, without using an external library or wrapper script: $ echo foo ...
Luciferase asked 17/12, 2022 at 10:40

9

Solved

I have been reading the doc and searching but cannot seem to find a straight answer: Can you cancel an already executing task? (as in the task has started, takes a while, and half way through it n...
Garnett asked 19/1, 2012 at 3:21

4

Solved

I am trying to pass data between two activities that are inside of tabs. I am trying to use sendBroadcast(). With breakpoints set I never reach onReceive(). Manifest: <activity android:name=...
Vita asked 11/10, 2010 at 15:39

3

I need to add a native sticky background service in a flutter application, in order to achieve 2 things: Starting at boot time and running in background indefinitely Exchange data with the main Da...
Isallobar asked 8/2, 2021 at 20:24

0

I am currently experimenting with ZMQ as a possible message broker for IPCs. Version -> ZMQv4 I am using pebbe ZMQ , a go library over zmq's C library and performing tests. I am rate testing it ...
Oeillade asked 3/7, 2022 at 15:3

1

Solved

After serious development, CPUs gained many cores, gained distributed blocks of cores on multiple chiplets, numa systems, etc but still a piece of data has to pass through not only L1 cache (if on ...
Cherimoya asked 11/5, 2022 at 19:36

2

Solved

The following question was triggered by the discussion in this post. Assume two files (foobar.py and foobar_unittest.py). File foobar.py contains a class (FooBar) with two functions (foo and bar)....
Speedway asked 18/2, 2016 at 19:36

1

Solved

I'm having trouble getting my head around the purpose of supply {…} blocks/the on-demand supplies that they create. Live supplies (that is, the types that come from a Supplier and get new values wh...
Recommendation asked 3/10, 2021 at 2:55

1

Solved

When writing concurrent code, it's fairly common to want to spin off a separate (green or OS) thread and then ask the code in that thread to react to various thread-safe messages. Raku supports thi...
Virescence asked 28/9, 2021 at 22:8

5

I'm trying to implement my own chrome extension on which, on a certain event, create a browser notification and fills the popup with data calculated in background.js Here is my manifest.json file: ...

12

Is while (true) { ... } loop in threads bad? What's the alternative? Update; what I'm trying to to... I have ~10,000 threads, each consuming messages from their private queues. I have one thread ...
Sinfonietta asked 29/7, 2010 at 21:43

10

Solved

Correct me if I'm wrong, but I'm surprised this hasn't been asked before on here ...
Chalaza asked 5/12, 2009 at 20:4

1

I'm trying to understand difference between objects/messages in Smalltalk and processes/messages in Erlang. I read the following post on the topic. As far as I understand, in Smalltalk, everything...
Judie asked 27/10, 2019 at 9:17

2

Solved

I'm writing a small framework for orchestrating AWS clusters and there are some common hierarchical patterns that appear over and over again. One such pattern is gathering a collection of instances...
Commander asked 22/2, 2014 at 23:1

6

Solved

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 ...
Trochilus asked 20/10, 2009 at 6:12

5

Solved

What are the options for achieving parallelism in Python? I want to perform a bunch of CPU bound calculations over some very large rasters, and would like to parallelise them. Coming from a C backg...
Tetragonal asked 7/6, 2010 at 8:22

1

Solved

I'm working on a data processing routine in Celery with a Redis backend and broker. Many workers (~200) interact with a broker to get tasks and execute those tasks. However, my workers are all send...
Legislative asked 14/5, 2018 at 11:16

8

Solved

I am trying to make my own MusicPlayer for android. Where i came to a problem is running some things in background. Main activity manages GUI and up to now all the songs are playing. I wanted to se...
Jeroboam asked 15/12, 2013 at 13:14

4

Solved

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 som...
Cray asked 3/1, 2009 at 23:54

2

Solved

Let's imagine that I'm spawning multiple child processes in elixir. defmodule Child do def start(name) do receive do msg -> IO.puts "Message received by #{name}: #{inspect msg}" end end en...
Galoshes asked 24/1, 2018 at 7:11

3

Solved

I will be starting a project which requires communication between distributed nodes(the project is in C++). I need a lightweight message passing library to pass very simple messages(basically just ...
Plover asked 10/4, 2010 at 20:40

1

Solved

In MPI gather and scatter there is two counts for send and receive. I checked the docs and found out that both should have the same value. Ex:- In MPI_Gather() both send_count and receive_count s...
B asked 16/7, 2017 at 20:35

1

Solved

I am passing an mpi communicator from python to C. I chose to use boost's mpi communicator as mpi4py does not seem to have good C support. Check it out: try: from boost.mpi import world except I...
Nostoc asked 25/2, 2016 at 23:31

1

Solved

Definitions: Please note from the outset that by 'injected script', 'extension code' and 'content script' I will be using the definitions provided in the excellent first answer to this question. ...

© 2022 - 2024 — McMap. All rights reserved.