Article View: comp.windows.ms
Article #13449Re: Yield?
From: Bill Turner
Date: Fri, 13 Jan 1989 18:25
Date: Fri, 13 Jan 1989 18:25
12 lines
894 bytes
894 bytes
>>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
Technical Details
Message-ID:
<106580016@hpcvlx.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!pasteur!ucbvax!hplabs!hp-pcd!hpcvlx!bturnerReferences:
<33575@grapevine.uucp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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