473,385 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

recursive event routing algorithm

hello

i'm searching for algorithm able to detect and resolve conflicts
during recursive event propagation.
I'd like to implement small message passing framework without using
message queue - messages
would be delivered by simple method calls. This leads to recursive
message ordering instead of
natural one - and thus sometimes may cause problems. I know there are
algorithms that detect this
situation and block problematic messages for later delivery. Such
algorithm is used in blackbox
(component pascal/oberon) framework, but i'm unable to find it's
detailed description....

any ideas???

greetings
marcin
Jul 17 '05 #1
2 3458
Hi
i'm searching for algorithm able to detect and resolve conflicts
during recursive event propagation.

Events using either recursion or message queues are often implemented
as substitutes for full threading. Rather than re-inventing threading,
or a subset of threading, why not simply use threading to handle events?


I should give the reason in my previous post - here it goes:

I have to implement such a framework as a project on my "Component Software"
course :) My main goal to gain some knowledge about implementing highly
reusable software, and implementing "strange" event propagation routines
is only the device...
I think my prof. choosen this subject, as implementation of such algorithm
probably would give lots of architecture design problems
(eg. how to make it "easy to use" from client point of view).

Hope make things clear...
Thank you for reply.

Marcin
Jul 17 '05 #2
zo******@interia.pl (Marcin Kielar) wrote in
news:ea**************************@posting.google.c om:
hello

i'm searching for algorithm able to detect and resolve conflicts
during recursive event propagation.
I'd like to implement small message passing framework without using
message queue - messages
would be delivered by simple method calls. This leads to recursive
message ordering instead of
natural one - and thus sometimes may cause problems. I know there are
algorithms that detect this
situation and block problematic messages for later delivery. Such
algorithm is used in blackbox
(component pascal/oberon) framework, but i'm unable to find it's
detailed description....

any ideas???


Why exclude the use of message queues? They are frequently used with
good success.

A recursive approach provides the effects of a message queue using
process stack space. One problem with this approach is that many
OSs provide relatively limited stack space for a single process.

Events using either recursion or message queues are often implemented
as substitutes for full threading. Rather than re-inventing threading,
or a subset of threading, why not simply use threading to handle events?

The abstract model of an event handling system includes the idea that
events are asynchronous with regard to the responders, and that each
responder should be allowed to proceed independently of all other
responders. Such behavior has been implemented as a set of method
calls in a single thread, but at a cost of significant complexity.
This is one model that fits a multi-threaded design much better than a
single threaded design.

Jim Rogers
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Shiv Agarwal | last post by:
Hi, I am writing a .NET application in C#. I have to display the routing table in some formatted NMS way. Anyhow the issue is that, whenever the routing table changes I want to get an event....
4
by: Victor | last post by:
Hello, I've got a situation in which the number of (valid) recursive calls I make will cause stack overflow. I can use getrlimit (and setrlimit) to test (and set) my current stack size. ...
64
by: dmattis | last post by:
I am trying to write a recursive version of Power(x,n) that works by breaking n down into halves(where half of n=n/2), squaring Power(x,n/2), and multiplying by x again if n was odd, and to find a...
14
by: BQ | last post by:
Due to a lack of resources, I have to translate the following recursive function in its iterative form. It's a kind of dichotomic search. void SearchSlaves(unsigned long start_uid, unsigned long...
6
by: Ravi | last post by:
Hi, I need to find the non-recursive algorithm to find the height of a Binary Tree. Regards, SunLight.
1
by: Ghada Al-Mashaqbeh via DotNetMonster.com | last post by:
Hi all, I want to implement Lee Maze routing algorithm in C#, I have many problems especially in gaining usefull resources about the algorithm work, please if can any body help me to find...
9
by: seberino | last post by:
I'm a compiler newbie and curious if Python grammar is able to be parsed by a recursive descent parser or if it requires a more powerful algorithm. Chris
1
by: momo | last post by:
Hi everybody, I have to implement a routing and wavelength assignment problem (RWA) for a given optical network. I ve implemented the network graph in C using linked list. the shortest-path...
2
by: ricky | last post by:
Hi, I am student and I am doing a final year project on Zig-bee. I have to write low energy routing algorithms. I need to write routing algorithm for LEACH. If anybody can help with some links...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.