Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!emory!mephisto!mcnc!ecsgate!ecsvax!utoddl From: utoddl@uncecs.edu (Todd M. Lewis) Newsgroups: comp.sys.amiga.tech Subject: Task Switching Problem Message-ID: <1990Sep21.180100.28580@uncecs.edu> Date: 21 Sep 90 18:01:00 GMT Organization: UNC Educational Computing Service Lines: 26 [ I tried to post this once before, but I never saw it, so...] Hello, net. I'm writing a set of programs which work together but should run at different priorities. What I'd like to do is monitor how these different programs interact as far as who runs when and for how long. What I'd particularly like to know is * how does one get the currently running task to relinquish the CPU for the rest of the current time slice? I want to have a task which will increment a counter each time it is activated, then sleep until its turn to run comes up again. All the other monitoring functions I want to build into this system can be built on top of this and the other exec functions, but this one has me stumped. Any ideas? _____ | Todd M. Lewis Disclaimer: If you want my employer's ||\/| utoddl@ecsvax.uncecs.edu ideas, you'll have to || || utoddl@ecsvax.bitnet, @unc.bitnet _buy_ them. | || utoddl@next1.mscre.unc.edu |___ ("Prgrms wtht cmmnts r lk sntncs wtht vwls." --TML)