Path: utzoo!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!pasteur!ucbvax!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.HP.COM (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: Yield? Message-ID: <106580016@hpcvlx.HP.COM> Date: 13 Jan 89 18:25:11 GMT References: <33575@grapevine.uucp> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 12 >>The only problem with this is that your application will still control the >>CPU, starving all other tasks. Task switching isn't done unless the >>messgae queue is empty. > >Not true! The WM_TIMER method does work. I have used it for several >programs. Other tasks are not starved, because the queue is empty between >timer messages. You're right; I was thinking of the other technique that was proposed, doing a chunk of processing and sending yourself a message to continue. Sorry. --Bill Turner