Re: Someone changed my Thread Manager writeup?
- Posted by Al Getz <Xaxo at aol.com> Aug 12, 2005
- 563 views
Hi again Pete, Ok, that was the short reply :) I guess it just pisses me off when some people give something about three seconds of thought before they start rattling off bad points about something. It's ok though i guess, as a critical look is worthwhile. Rob said he was working on threads so he's not going to stop now :) I said it used preemptive MT because once the time slice is up another thread can break in. preemptive MT doesnt imply an order. If you dont like that, then call it pseudo preemptive MT'ing :) >I guess i could add a scheduling mechanism if that would make more > >people happy :) > I'd be very surprised if you could. What would be so surprising about that??? I kept saying in past posts that the operation is from a software point of view it works like threads...from a hardware standpoint (like I/O) the user still has to break up his task into pieces. I also said the order or completion doesnt always matter: OrderA: Thread 1, Part A Thread 2, Part A Thread 1, Part B Thread 2, Part A OrderB: Thread 1, Part A Thread 2, Part A Thread 2, Part B Thread 1, Part A Both take the same about of time (approx), and both complete both tasks. Many times the user doesnt care what order they are done in. As i had mentioned, i can change this so that we would get OrderA all the time, but it makes the code more complicated. Dont be surprized because as you know this is all mostly software and you can do almost anything with software :) Also, as i mentioned time and time again in past posts, there are going to be a ton of times when the user wont know the difference anyway (OrderA or OrderB ?). There's lots of things this doesnt do that 'real' threads can do, such as wait for another thread to complete before continuing, but that would add more code too. This addresses the most basic problems that come up from not having any threads at all (at least until Rob completes his task of adding some sort of threads to Eu). Im using this now all the time, and i certainly wouldnt use it if it didnt work, or didnt provide a decent amount of functionality over not having it. Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"