Subject: | |
From: | |
Reply To: | |
Date: | Wed, 25 Nov 1998 13:14:04 PST |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Funny you should mention Graphical Dining Philosophers...
We have been working with simple Tcl/Tk graphics (through Tash) hooked up to
lots of Ada real-time systems for data visualizations, and I
decided to modify the portable-diners mentioned in the html just sent out:
http://www.seas.gwu.edu/faculty/mfeldman/papers/portable-diners.html
and use TK windows for both the Philosophers, and also the
Chopstick protected objects (what state they were in).
In a very short time, a cool display of the different states
is displayed, in various colors, and you can arrange the windows
so the PO's are between the philosophers.
What is rather interesting with this new visualization
(over the current Text curses version), is that it can spot possible
problems in the algorithms. For example, my very cursory
running of the code sometimes shows a Philosopher Eating, but the
adjacent Chopsticks are not always both in the "Picked Up" state.
I will be looking at this more soon, but this is the type of
things that clever visualizations can help uncover.
- Scott Moody
|
|
|