home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / OS2 / HANOI / README < prev   
Text File  |  1995-06-08  |  2KB  |  78 lines

  1.  
  2.  
  3.  
  4. HANOI - Multithreaded Sample (Towers of Hanoi) 
  5.  
  6.  
  7. DESCRIPTION:
  8.  
  9. HANOI implements the familiar "towers of Hanoi" puzzle.  When the sample
  10. program is started, the user sees three poles (A, B, and C).  Initially,
  11. pole A has on it a stack of disks starting with the largest disks
  12. on the bottom and succeeding smaller disks on the top.  The main thread
  13. handles the Presentation Manager interface and lets the user start or
  14. stop the Hanoi routine.  It also lets the user reset the number of
  15. working disks.  The second thread is created when START is selected
  16. from the Options menu.  This thread starts the recursive execution
  17. of the Hanoi algorithm, runs in the background, and moves and
  18. paints the disks.  All disks end up on pole C.
  19.  
  20. TASK:
  21. Solve the Towers of Hanoi problem using multithreading.
  22.  
  23. CONCEPT/FEATURE:
  24. This sample application was written to demonstrate the use of a multi-
  25. threaded program.  The main thread handles the PM interface,
  26. the second thread is started to do the recursive execution
  27. of the hanoi algorithm.
  28.  
  29. SAMPLE LOCATION:
  30. Inside the OS/2 Sample Programs (which is inside the VisualAge C++ 
  31. Samples folder).
  32.  
  33. Note:This sample is not provided in project form.
  34.  
  35. SOURCE FILE LOCATION:
  36.  
  37. X:\ibmcpp\samples\toolkit\os2\hanoi
  38. where X: is the drive you installed the samples and document component
  39. of VisualAge C++ for OS/2.
  40.  
  41.  
  42. HOW TO RUN THE SAMPLE:
  43.  
  44. -From your OS/2 desktop:
  45.  Double-click on the sample's icon.
  46.  
  47. -From an OS/2 command prompt:
  48.   To start a non-WorkPlace Shell sample program from an OS/2 command
  49.   prompt, type the name of the executable file and press Enter.  If you
  50.   have edited source code of a sample program and want to recompile,link,
  51.   and run the files, use the NMAKE tool.  Your output is the executable
  52.   file.  For information about the NMAKE utility, see the OS/2 Tools
  53.   Reference.
  54.  
  55.  
  56. SOFTWARE/HARDWARE PREREQUISITES:
  57.  
  58. - IBM VisualAge C++
  59. - OS/2 Warp
  60. - IBM or compatible 386 and up.
  61.  
  62. REQUIRED FILES      DESCRIPTIONS  
  63.  
  64.   hanoi.c           The main() file
  65.   hanoi.def         Link definitions file
  66.   hanoi.dlg         Dialog resource file
  67.   hanoi.exe         The executable
  68.   hanoi.h
  69.   hanoi.hlp         Help file
  70.   hanoi.ico
  71.   hanoi.ipf
  72.   hanoi.mak         MakeMake generated makefile
  73.   hanoi.rc
  74.   readme            This file
  75.  
  76.  
  77.  
  78.