Expected Results from Exercise 3

After successfully completing the exercise, you should see the following results:

  • The increase or decrease in the size of the swap file will always be in multiples of 512KB.

  • If a large number of DOS sessions is specified, and a CPU-bound DOS program is started in each session, a heavy system load can be observed. This is because the DOS programs continue to execute even when in background. The system usage can be monitored using the PULSE application which can be found in the Productivity folder of the OS/2 System Folder which appears on the OS/2 Desktop.

    If the time is available, you may wish to experiment by starting sessions with a type other than DOS full screen. MEMLAB3 will accept a second parameter which is then used as the SessionType parameter when calling the DosStartSession function.

    Syntax: MEMLAB3 <no of sessions> <SessionType>
    

    Session type may be any one of the values accepted by DosStartSession.

    SessionType

    1 2 3 4 7

    Edit the MEMLAB3.PRO file to change the name of the program to be started and the parameters with which it must be started. Issue the command to start MEMLAB3 specifying both the number of sessions to start and the session type to be started.


    [Back: Exercise 3 - Multiple DOS Sessions]
    [Next: Source Code MEMLAB3.C]