Windows 95 and Windows NT run applications differently, especially when supporting 16-bit applications.
Figure 1.7 Message Queues
Messaging in 16-bit Windows
Under Windows 3.1, a single message queue is used by the entire operating system. Win16-based applications cooperatively examine the queue and extract messages addressed to them. This single-queue causes problems. For example, if a Win16-based application malfunctions, it can prevent other applications from checking the message queue, which causes Windows 3.1 to suspend other Win16-based applications until control is relinquished to them and they are able to check for event messages.
Messaging in Windows 95
Windows 95 solves the problems inherent with the single message queue by providing separate message queues for each running Win32-based application. Each thread in a Win32-based application can have its own message queue, and, therefore, is not affected by the behavior of other running tasks . If a Win16- or Win32-based application malfunctions, other Win32-based applications continue to run preemptively and can still receive incoming messages or event notifications.
In Windows 95, all 16-bit Windows-based programs share a common message queue. If a 16-bit Windows-based program fails, all the running 16-bit Windows-based programs have their messages blocked until the failed program is cleared.
Figure 1.8 Virtual machines
Windows NT runs Win16 and MS-DOS applications in their own private address space called a Virtual DOS Machine (VDM). This allows all applications to be protected from other applications. This allows Windows NT to preemptively multitask all operating system services and applications.
Windows 95 and Windows NT systems can run MS-DOS-based applications in separate VDMs. However because some memory is available to all virtual machines in Windows 95, MS-DOS-based applications potentially can cause the system to halt.
* To test the functions of the 16- and 32-bit Windows-based programs
The SPINDIB16 program starts.
An Open dialog appears.
A bitmap of Bill Gates appears inside the SPINDIB16 window.
The bitmap should spin or flip (respectively) and return to the normal layout. The time elapsed appears on the right side of the toolbar.
Leave both programs active on your workstation.
* To cause a 16-bit general protection-fault
One method is to right-click the Windows taskbar, then select Tile Horizontally or Tile Vertically . This automatically arranges all of your open programs on your desktop.
When the fuse burns down, the bomb explodes. At this point a general protection fault is triggered.
Windows 95 displays a dialog box allowing you to close the application or ignore the GP fault.
Windows 95 displays an Application Error dialog box with details of the error and a second Close button. Leave this dialog open.
Answers
* To cause a 16-bit Windows-based program to hang
When the fuse burns down, the bomb explodes. At this point the program hangs .
A dialog box appears prompting you to either End Task or Cancel .
The remaining programs become active.