1. Virtual Thread Manager 02 now available
- Posted by Al Getz <Xaxo at aol.com> Aug 15, 2005
- 489 views
Hello again, The new Win thread manager (02) is now called "Virtual Thread Manager". It doesnt use OS threads but makes the app seem like it does. It's got a true scheduler and you can set priority by using a greater or lesser amount for the time slice for each thread. Useage is fairly straightforward but see the docs and the demos for required function calls and basic code structure. There are two 'sub versions' of 02, one for WinClass and the other for WinLib, along with one demo for each. Make sure to run the correct demo for the Win library you intend to use. Useage is the same for either. Any ideas/suggestions welcome. BTW, i see what Matt was talking about now when he said "Langwar". I took a look at that, but it looks a lot more complex and harder to use or did i miss something? Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"
2. Re: Virtual Thread Manager 02 now available
- Posted by Greg Haberek <ghaberek at gmail.com> Aug 15, 2005
- 493 views
- Last edited Aug 16, 2005
> BTW, i see what Matt was talking about now when he said "Langwar". > I took a look at that, but it looks a lot more complex and harder > to use or did i miss something? The LangWar Task Scheduler is a nice little library when stripped of its LangWar-specifc data. IMHO, Rob should move the library to the INCLUDE folder instead of the LangWar folder, and make it a general use library with better documentation. I was working on adapting the LangWar Task Scheduler to Windows in general (regardless of library) using Multimedia Timers to trigger the various next_task() calls and what not. I'm at work right now, so I don't have the code in front of me. I think I ran into issues with the Multimedia Timers crashing because they actually use a thread to keep proper time, and as we all know, threads crash Euphoria. I had it working with setTimer() in Win32Lib, but like I said, I wanted it to be library-independant. I supposed I could pick up on it again.... ~Greg
3. Re: Virtual Thread Manager 02 now available
- Posted by Al Getz <Xaxo at aol.com> Aug 16, 2005
- 519 views
Greg Haberek wrote: > > > BTW, i see what Matt was talking about now when he said "Langwar". > > I took a look at that, but it looks a lot more complex and harder > > to use or did i miss something? > > The LangWar Task Scheduler is a nice little library when stripped of > its LangWar-specifc data. IMHO, Rob should move the library to the > INCLUDE folder instead of the LangWar folder, and make it a general > use library with better documentation. > > I was working on adapting the LangWar Task Scheduler to Windows in > general (regardless of library) using Multimedia Timers to trigger the > various next_task() calls and what not. I'm at work right now, so I > don't have the code in front of me. I think I ran into issues with the > Multimedia Timers crashing because they actually use a thread to keep > proper time, and as we all know, threads crash Euphoria. I had it > working with setTimer() in Win32Lib, but like I said, I wanted it to > be library-independant. I supposed I could pick up on it again.... > > ~Greg > > Hi Greg, You wont have to now :) There are two libs one for WinClass and one for WinLib, and im soon going to have one for Arwen and a general purpose lib for any Windows lib. I still prefer my older version 01, at least when it can be used, because there's less housekeeping to do with that one. I took a quick look at Langwar and it's cute, but i dont understand it fully yet. I guess Rob sets up his own timer or something? Not sure if that would work very well under Windows unless you dont have to process messages as well as the 'threads' ? Cant have anything hogging the whole (single) thread or messages dont get dispatched. Havent looked at this that in depth yet however, and i'll probably end up moving on to something more pressing for my personal needs anyway...i still havent completed my Appointment Calendar the way i want it to be. Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"
4. Re: Virtual Thread Manager 02 now available
- Posted by don cole <doncole at pacbell.net> Aug 16, 2005
- 507 views
Al Getz wrote: > > > Hello again, > > > The new Win thread manager (02) is now called "Virtual Thread Manager". > It doesnt use OS threads but makes the app seem like it does. > It's got a true scheduler and you can set priority by using a greater > or lesser amount for the time slice for each thread. Useage is fairly > straightforward but see the docs and the demos for required function > calls and basic code structure. > > There are two 'sub versions' of 02, one for WinClass and the other for > WinLib, along with one demo for each. Make sure to run the correct demo > for the Win library you intend to use. Useage is the same for either. > > Any ideas/suggestions welcome. > > BTW, i see what Matt was talking about now when he said "Langwar". > I took a look at that, but it looks a lot more complex and harder > to use or did i miss something? > > > Take care, > Al > > And, good luck with your Euphoria programming! > > My bumper sticker: "I brake for LED's" > Thanks for the win32lib version Al. It's going to make my life alot easier. Don Cole, SF
5. Re: Virtual Thread Manager 02 now available
- Posted by Al Getz <Xaxo at aol.com> Aug 16, 2005
- 495 views
don cole wrote: > > > Thanks for the win32lib version Al. > > It's going to make my life alot easier. > > Don Cole, > SF > Hey, Don, you're welcome. I hope it helps with your app the way (the first version) helped with some of my apps. If you have any ideas let me know too... I'd be happy to try your 'dates' program when it's available. Perhaps sometime later today? Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"
6. Re: Virtual Thread Manager 02 now available
- Posted by Igor Kachan <kinz at peterlink.ru> Aug 17, 2005
- 520 views
Al Getz wrote: > Hello again, > > > The new Win thread manager (02) is now called "Virtual Thread Manager". > It doesnt use OS threads but makes the app seem like it does. > It's got a true scheduler and you can set priority by using a greater > or lesser amount for the time slice for each thread. Useage is fairly > straightforward but see the docs and the demos for required function > calls and basic code structure. > > There are two 'sub versions' of 02, one for WinClass and the other for > WinLib, along with one demo for each. Make sure to run the correct demo > for the Win library you intend to use. Useage is the same for either. > > Any ideas/suggestions welcome. > > BTW, i see what Matt was talking about now when he said "Langwar". > I took a look at that, but it looks a lot more complex and harder > to use or did i miss something? Hi Al, It is one of the good names for these threads, I think. Say, it seems to be, FreeBasic and Ruby (multiplatform langs like Euphoria) have the non-OS threads, FreeBasic even for DOS, but their 'quasi-threads' named as just 'threads' and it is a source of confusions (correct me please, if I'm wrong). But Euphoria has some form of this multitasking feature just from v1.0, and under pure DOS, and without any noise. And non-OS threads seem to be a very simple and robust solution of multitasking for the multiplatform languages at all. Good Luck! Regards, Igor Kachan kinz at peterlink.ru
7. Re: Virtual Thread Manager 02 now available
- Posted by Al Getz <Xaxo at aol.com> Aug 17, 2005
- 492 views
Igor Kachan wrote: > > Al Getz wrote: > > > Hello again, > > > > > > The new Win thread manager (02) is now called "Virtual Thread Manager". > > It doesnt use OS threads but makes the app seem like it does. > > It's got a true scheduler and you can set priority by using a greater > > or lesser amount for the time slice for each thread. Useage is fairly > > straightforward but see the docs and the demos for required function > > calls and basic code structure. > > > > There are two 'sub versions' of 02, one for WinClass and the other for > > WinLib, along with one demo for each. Make sure to run the correct demo > > for the Win library you intend to use. Useage is the same for either. > > > > Any ideas/suggestions welcome. > > > > BTW, i see what Matt was talking about now when he said "Langwar". > > I took a look at that, but it looks a lot more complex and harder > > to use or did i miss something? > > Hi Al, > > It is one of the good names for these threads, I think. > Say, it seems to be, FreeBasic and Ruby (multiplatform langs > like Euphoria) have the non-OS threads, FreeBasic even for > DOS, but their 'quasi-threads' named as just 'threads' and > it is a source of confusions (correct me please, if I'm wrong). > > But Euphoria has some form of this multitasking feature just > from v1.0, and under pure DOS, and without any noise. > > And non-OS threads seem to be a very simple and robust > solution of multitasking for the multiplatform languages at all. > > Good Luck! > > Regards, > Igor Kachan > kinz at peterlink.ru > > Hi Igor! Thanks, and i hope you find it useful too. It seems pretty easy to use but if you find any difficulties i'd like to hear about them. Threads always make the code a little harder write and understand, but for some things they are really needed. Before i found some means to achieve thread like operation i couldnt call more than one function at a time...and if it took 20 seconds to complete i'd have to sit there and wait it out and put up with the app paint messages getting clogged up and not reaching the WinProc so the app appeared to freeze even though it was running normally...and if you clicked on another window that overlapped your app window it would mess up the normal windows painting, which of course wouldnt correct itself until after the long operation was done...how nice to see only half a window there! Now that nastyness is all gone :) Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"