1. Multitasking/Eu/WinLib
- Posted by Grape_ Vine_ <g__vine at HOTMAIL.COM> May 31, 2000
- 456 views
Is there a way to make a true task manager in Eu? Is there a way to access the windows taskman and give it different sections of code to run? If so can it be a eu function or procedure or would i have to use a dll? PS I am using WinLib, that doesn't help does it GrapeVine ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
2. Re: Multitasking/Eu/WinLib
- Posted by Undetermined origin c/o LISTSERV administrator May 31, 2000
- 466 views
Grape_ Vine_ wrote: > Is there a way to make a true task manager in Eu? Is there a way to access > the windows taskman and give it different sections of code to run? > If so can it be a eu function or procedure or would i have to use a dll? > > PS I am using WinLib, that doesn't help does it > > GrapeVine > > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com Euphoria doesn't support multitasking, so while it is possible to make the right system calls (I've tried on Linux), the program gets really messed up. I wrote a cooperative multitasking type library (ESE or an Event System for Euphoria) which does events as well as simple multitasking, but id doesn't use real threads and you have to program each section between task switches. It works fairly well for simple things, though. For example, you can use it in a game to play sounds on the PC speaker "at the same time" as you are accepting key events etc. My game programming library uses this extensively. Jeff
3. Re: Multitasking/Eu/WinLib
- Posted by Agent Spectre <Email at SPECTRESOFTWARE.CO.UK> Jun 01, 2000
- 472 views
This is a big question and something that I would like to see added somehow. I have a problem with load times and morfit with huge worlds, and disable their load screen and their progress bars. Unfortunately, without threads, the window stops responding until the task has finished - and it can take some time on slow machines as Im playing with 14,000 polygons. Can any of our windows experts think about a way to address threads and win32? With threads I could check the progress of the task and of course refresh the main window so it doesnt stop responding. Pete King. -----Original Message----- From: Grape_ Vine_ <g__vine at HOTMAIL.COM> To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU> Date: Wednesday, May 31, 2000 11:23 PM Subject: Multitasking/Eu/WinLib >Is there a way to make a true task manager in Eu? Is there a way to access >the windows taskman and give it different sections of code to run? >If so can it be a eu function or procedure or would i have to use a dll? > >PS I am using WinLib, that doesn't help does it > >GrapeVine > >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com >
4. Re: Multitasking/Eu/WinLib
- Posted by Kat <gertie at PELL.NET> Jun 01, 2000
- 463 views
On 31 May 2000, at 15:23, Grape_ Vine_ wrote: > Is there a way to make a true task manager in Eu? Is there a way to > access the windows taskman and give it different sections of code to > run? If so can it be a eu function or procedure or would i have to use > a dll? I got around the problem by creating separate running exw sessions, and having them communicate via winsocks. I don't have a taskmanager, but you could write one for this in Eu. You can use "run" to run them, and a quit command sent via socks to kill them. I presume you can use this method to run partA of Program in linux on one box, and partB of program in windoze on another computer via ethernet. the threads run this way must be totally separate, as they are running from separate exw.exe directories. If you want them to share info, you must send and recieve that info. If you do this on the same computer, you could be able to grab slices of memory, like a virtual screen buffer, and have each partX of program control each section. No section need be fixed, but how to get permissions from the OS to grab each slice, i don't know. > PS I am using WinLib, that doesn't help does it It would help to write the socks code, but i know little of winlib otherwise. Kat