home *** CD-ROM | disk | FTP | other *** search
/ C/C++ User's Journal & Wi…eveloper's Journal Tools / C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso / smxdemo / windemo / windemo.doc < prev    next >
Encoding:
Text File  |  1993-07-12  |  3.3 KB  |  63 lines

  1. ***************************************************************************
  2. *               Welcome to the smxWindows and smxProbe Demo!              *
  3. ***************************************************************************
  4.  
  5. This demo shows the capabilities of smxWindows and allows you to actually
  6. use smxProbe.  An actual copy of smxProbe is linked in with the demo.
  7. At any time while running the demo, ^S toggles into and out of smxProbe. We
  8. suggest that you print the instructions for smxProbe (c:\smxdemo\probe.doc).  
  9. A few minutes reading is all that is necessary to learn how to use smxProbe. 
  10. Then you can really look behind the scenes of this demo!
  11.  
  12.  
  13. Running the Demo: 3 Sequences
  14.  
  15. After the initial opening windows, there are 3 demo sequences for you
  16. to try.  ^D switches between them.  The first sequence shows window
  17. operations, such as window creation, deletion, and re-ordering.  The
  18. "Status Window" indicates which smxWindows operation is being performed
  19. (e.g. Create, Destroy, etc.). After the sequence completes, it restarts.  
  20. You can switch to the next sequence at any time.
  21.  
  22. NOTE:  Delays have been put in to slow the demo so you have time to read 
  23.        the status window and see what is happening.
  24.  
  25. The second sequence is a simple demonstration of timeslicing.  Each window
  26. is owned by a task.  When one of the tasks runs, its window is moved to 
  27. the front of the display and its counter increments.
  28.  
  29. The third sequence is a simple demonstration of message sending.  Each of
  30. the 5 stacked windows is owned by a separate receiving task.  The window
  31. on the right is where you input a message to send.  The top window 
  32. receives the message first, then passes it to the next.  The message is
  33. passed in order to the remaining windows, until finally, the last window's
  34. task returns the message to the free messages resource exchange.  Each
  35. of the message receiving/sending tasks has its own exchange associated
  36. with it.  The tasks are suspended on their respective exchanges until a
  37. message is received, and then output that message into their respective
  38. windows.
  39.  
  40. NOTE:  The message sending sequence contains long delays.  smx is extremely
  41.        fast and if it were not for the delays, the messages would appear 
  42.        to be received and output to all windows simultaneously!  The delays
  43.        were put in to allow you to see the progression of the message sending
  44.        among the tasks.
  45.  
  46.  
  47. Source Code Provided
  48.  
  49. We have provided the main part of the application code for this demo in
  50. order to show how smxWindows calls are made.  You can examine the code
  51. and see how various parts of the demo were done.  See ddemo.c.  If 
  52. you wish to view ddemo.c now, you can exit to DOS (Ctrl-X).  Otherwise, 
  53. the demo will run shortly after you are done viewing this file.  (It is 
  54. called ddemo.c since this demo was developed from the smx DOSdemo platform.) 
  55.  
  56. Besides demonstrating smxWindows, the code also shows a considerable amount 
  57. about smx.  The demo shows numerous examples of common operations such as 
  58. task creation and message sending, and how nicely they are done with smx.  
  59.  
  60. Now that the demo files have been installed, you can run this demo directly 
  61. from your hard disk, if you wish, without going through rundemos again.  
  62. Just type "windemo".
  63.