Subj : Re: Lockable objects To : comp.programming.threads From : Sergei Organov Date : Thu May 19 2005 10:34 pm "Uenal Mutlu" <520001085531-0001@t-online.de> writes: > A mutex can be realized in just 8 bytes (counter and threadid). > These methods would be like any other method of the object: > just use which you want/need/like, or don't use at all: you have the > choice. Didn't you forget to attach a condvar to every non-trivial object as well? Just imagine how useful it is to have it ready for signalling and for waiting for changes to the object! > The advantage of having such an "architecture" in the language > gives far more possibilities for the users. .... and then we end up with a "class Everything" that provides all the imaginable possibilities to the user, including automated check against famous Uenal Mutlu deadlock theorem. We have reached ultimate perfectness! Congratulations! The only problem is that it seems that nobody but Uenal Mutlu will use the language then. > And: multithreading has become a de facto standard in programming, > esp. in application programming. .... mostly due to the fact that one famous OS doesn't provide a sensible way to deal with non-trivial IO without threads and has pure support for processes, IMHO. Hard times during which programmers learn *not to use threads* where they are inappropriate I foresee :( -- Sergei. .