The Single Processor Utility Program

As explained previously, some applications written for uniprocessor OS/2 may experience problems running under OS/2 for SMP V2.11 because they rely upon priorities between threads for accessing shared resources, or use the CLI/STI method for protecting resources like semaphores or memory. These types of application are called MP-safe. These programs will still run fine under OS/2 for SMP V2.11 if they are run in a uniprocessor mode.

The EXECMODE program is a utility which marks the executable (EXE) file to be run in a uniprocessor mode. The OS/2 loader detects this bit set and forces the application to run on a single processor. The EXECMODE utility can be used to set and reset the uniprocessor mode in an executable file, as well as list those programs that are marked as MP or SP.

The syntax for the EXECMODE utility program is as follows:

 execmode (options)[d:[\[path\]]]filenam1.ext( options) [filenam2.ext]...

The EXECMODE program accepts several command line options. Each option must be preceeded by a "/" or a "-".

sp

mp l s f v q d t

Up to 50 arguments, in any order, can be specified on the command line. Wildcards are permitted in filenames.


[Back: New Kernel Debugger Commands]
[Next: OS/2 for SMP V2.11 Tools]