| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Whatever happened to `pre-emptive`? |
Hello All! I have a PM program that sets up a main window, then kicks off a thread to do some processing, which is time intensive. It reports the results back by posting messages to a listbox, which gradually fills with my data. using WinSendMessage (so the thread has its own message queue.) This thread, which repeatedly retreives data from the INI files and scans it for specific substrings, brings my P90 to its knees. Everything else is VERY slow whilst the scanning is taking place. However, adding a DosSleep(1) to tell the thread to give up its timeslice now and again seems to cure the problem. Why is this happening? OS/2 isn't supposed to let one process hog processor time like that, is it? Is it something to do with the message queues? Christian --- GEcho 1.01+* Origin: rc = DosMakeCoffee(CoffeeJarPtr,CC_MILK,CC_TWOSUGARS); (2:440/4.7) SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 440/4 141/209 270/101 105/103 42 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.