Subj : Re: Challenge: Multithreading & Synchronization To : comp.programming.threads From : Uenal Mutlu Date : Wed May 18 2005 07:40 pm "doug" wrote > > "Uenal Mutlu" wrote in message > > "Sergei Organov" wrote > >> "Uenal Mutlu" writes: > >> > Your challenge would be good, and I might even do it myself, *if*: > - I didn't know you were just asking so you can turn around and say 'but > look, my program already does it!' Which "my" program? Do you mean the deadlock detector program? It has nothing to do with that. > - I thought your program was useful beyond the extremely simple programs it > is designed for (i.e. the example you've given, which doesn't allow for flow > of control, dynamically generated objects, or collections of objets at the > same 'rank'). If that's so important to you then why not simply add the functionality you want or need, since you have the source. Or why not simply write your own? If I understand your requirements right then IMO all of them are already possible. Only the last one "collections of objects at the same 'rank'" I don't understand well. > By the way, i'm still waiting for your pseudocode implementation of a > recursive mutex that doesn't use memory barriers on lock() if it already > owns the semaphore. I don't think it an be done, but I'm keeping an open > mind! I've been busy with other stuff, like this one :-) I'll try to answer when I find some free time. .