TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: IVAN TODOROSKI
from: Herbert Rosenau
date: 1998-12-08 14:39:14
subject: the PM message queue

Hi IVAN,

 you wrote at 24.11.98  01:13 to HERBERT ROSENAU:
 
 IT>      When I dragged windows around, the beeping simply stoped!

This depends on your hardware. Dragging of a full sized window is a
resource (cpu) consuming operation in high priority. Even the kernel - and
drivers runs multithreaded and with different priority.

Try the operation on different processors (i486 -> P2/450 with different
memory on board and you see the difference.

Play on themn with

MAXWAIT=x (x = 1 to 3)
IOPL=YES	or NO

in config.sys and you'll find on the same hardware different behavior.

[...]
 HR>> The WPS itself ist locked until the view is shown but the program
 HR>> you has started before is ready for work.

 IT>  Tried this, and it works as you decribed it, but still there is a
 IT>  noticeable period when you cannot switch the focus to another
 IT> window.

This is the time the mouse message is active (the system queue is blocked).
The other time results on posted messages inside and between PM and WPS. In
WPS 1.0 was the whole action directly depending on the initial mouse
message and the whole desktop was locked the full time until the window was
fully painted.

Since OS/2 1.1 exists a rule for PM programmers: a message is to handle in
1/10s. If this is impossible the handing is to shift to another thread.
This rule should free the system message queue in short time. An other way
to become the system queue unlocked is POSTING a WM_USER to the same window
- but NOT for truly time consuming messages! You my create other threads
and post them the messages received from system queue. 


Tschau/Bye

Herbert


--- Sqed/32 1.14/development  22:
* Origin: C:\> gegen bunte Icons tauschen? NIEMALS! (2:2476/493)
SEEN-BY: 396/1 632/0 371 633/260 267 270 371 635/444 506 728 639/252 670/218
@PATH: 2476/493 480 2410/200 2432/200 2433/1200 225 270/101 396/1 633/260
@PATH: 635/506 728 633/267

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™.