home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tolkit45.zip
/
os2tk45
/
samples
/
os2
/
semaph
/
semaph.hlp
(
.txt
)
< prev
next >
Wrap
OS/2 Help File
|
1999-05-12
|
6KB
|
168 lines
ΓòÉΓòÉΓòÉ 1. About SEMAPH ΓòÉΓòÉΓòÉ
The SEMAPH application is a sample Presentation Manager application which
demonstrates the use of Mutex, Event and Mux Semaphores. In the application
several threads are sharing access to the same resource. A mutex semaphore is
used to guarantee that only one thread has access to the resource at a time.
An event semaphore is used to signal the thread to give up the resource. The
event semaphore can by posted by the user or the application can be run in auto
mode, in which case the event semaphore will be posted at fixed time intervals.
A Mux semaphore is used to check for a stop event or a user signal to give up
the resource. This application also serves as a template than can be easily
modified by an application developer.
ΓòÉΓòÉΓòÉ 2. Help Menu ΓòÉΓòÉΓòÉ
Use the choices on the Help pull-down to display:
Help index
Displays the index of help menu.
General Help
Displays some information about Semaph sample program.
Keys Help
Displays a list of keys usage.
Using Help
Provides detailed information on the kinds of help available and how to
use help.
ΓòÉΓòÉΓòÉ 3. General Help ΓòÉΓòÉΓòÉ
Use this choice to get general help for the program. General help provides
general information about the Semaph sample program.
Map above displays the number of hits for each thread.
Squares below change color as are hit by a thread.
ΓòÉΓòÉΓòÉ 4. Extended ΓòÉΓòÉΓòÉ
Use this choice to obtain information on how to use the Help facility.
ΓòÉΓòÉΓòÉ 5. Tutorial of Keys ΓòÉΓòÉΓòÉ
Use this choice to see a list of keys and a description of the function of the
keys.
ΓòÉΓòÉΓòÉ 5.1. Key Assigments ΓòÉΓòÉΓòÉ
The list of keys is arranged in groups.
ACCELERATOR KEYS
HELP KEYS
F1
Get help
Esc
Previous Help Panel, or End help if only one panel
Alt
Switch IN/OUT action bar
Alt+F4
End help or End program
SYSTEM KEYS
Alt+Esc
Switch to the next program, including full-screen programs
Ctrl+Esc
Switch to the Task List
WINDOW KEYS
Underlined letter
Move among the choices on the action bar and pull-downs submenu or
execut the function chosen
ΓòÉΓòÉΓòÉ 6. Index ΓòÉΓòÉΓòÉ
Use this choice to display the help index.
The help index lists the titles of the help information that is available.
ΓòÉΓòÉΓòÉ 7. Information ΓòÉΓòÉΓòÉ
This dialog displays information about the application, such as version number
and copyright notice.
ΓòÉΓòÉΓòÉ 8. Information ΓòÉΓòÉΓòÉ
The OK button closed dialog box.
ΓòÉΓòÉΓòÉ 9. Information ΓòÉΓòÉΓòÉ
This menu item will bring up four choices that indicated the number which
thread will be created.
ΓòÉΓòÉΓòÉ 10. Information ΓòÉΓòÉΓòÉ
This menu item indicated there are 2 threads will be created.
ΓòÉΓòÉΓòÉ 11. Information ΓòÉΓòÉΓòÉ
This menu item indicated there are 4 threads will be created.
ΓòÉΓòÉΓòÉ 12. Information ΓòÉΓòÉΓòÉ
This menu item indicated there are 8 threads will be created.
ΓòÉΓòÉΓòÉ 13. Information ΓòÉΓòÉΓòÉ
This menu item indicated there are 16 threads will be created.
ΓòÉΓòÉΓòÉ 14. Information ΓòÉΓòÉΓòÉ
This menu item starts the program.
ΓòÉΓòÉΓòÉ 15. Information ΓòÉΓòÉΓòÉ
This menu item indicated the program will create semaphs and events by program.
ΓòÉΓòÉΓòÉ 16. Information ΓòÉΓòÉΓòÉ
This menu item indicated the program will create semaphs and events by user.
ΓòÉΓòÉΓòÉ 17. Information ΓòÉΓòÉΓòÉ
This menu item will bring up a dialog box which can let user change minimum
interval for posting event semaphore.
ΓòÉΓòÉΓòÉ 18. Information ΓòÉΓòÉΓòÉ
This menu item will stop program running in automatic mode.
ΓòÉΓòÉΓòÉ 19. Information ΓòÉΓòÉΓòÉ
This menu item will resume program running in automatic mode.
ΓòÉΓòÉΓòÉ 20. Information ΓòÉΓòÉΓòÉ
This menu item will create and post an event and semaphore to a thread, once
each time.