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 / dlm / dlm.doc next >
Encoding:
Text File  |  1993-07-12  |  3.4 KB  |  76 lines

  1.  
  2.                     smx Dynamic Load Module Demo
  3.  
  4. I. Introduction.
  5.  
  6.    This disk contains a demonstration of the smx Dynamic Load Module 
  7. (smxDLM) environment. smxDLM is an enhancement to smx that allows the 
  8. loading and executing of smx .exe files as tasks independent of the 
  9. resident smx program that loads them.  Source code for one of the DLM's
  10. is provided as an example.  See prempt.c.
  11.  
  12.    If you wish to view the demo files now, you can exit to DOS (Ctrl-X).
  13. Otherwise, DLMdemo will run shortly after you are done viewing this file.
  14.  
  15.    Now that the demo files have been installed, you can run DLMdemo dir-
  16. ectly from your hard disk, if you wish, without going through rundemos 
  17. again.  To do this, change to the DLM subdirectory. Type, "dlm".
  18.  
  19.  
  20. II. Running DLMdemo.
  21.  
  22.    When DLMdemo first starts, it looks very simple.  You only see the
  23. 'disk demo' task running.  This task is in the resident part of the 
  24. application.  The other tasks are in DLM's which you can load or unload
  25. as you wish.  A message at the bottom of the screen reminds you of their
  26. names to help when loading.
  27.  
  28. In the middle of the screen are some statistics. On the bottom are 
  29. instructions on loading and displaying DLM programs.
  30.  
  31. Once you have loaded all of the DLM's, the screen looks much like our
  32. standard DOSdemo.  This is because DLMdemo was adapted from DOSdemo,
  33. putting a single task in each DLM.
  34.  
  35. Note that smxDLM allows multiple loading of DLM's, even though this demo 
  36. does not permit it.  In fact, this is a particularly useful feature, espec-
  37. ially when several tasks share the same code.
  38.  
  39.  
  40. III. Quick Guided Tour.
  41.  
  42.    To see a quick demonstration of smxDLM follow these steps:
  43.  
  44.         Type ^L (control L).
  45.         Type 'sleep'. This is one of three previously prepared 
  46.            programs. Notice that where the 'WAKEUP' appears, on the 
  47.            'timout task' line, there is also a flashing 'DLM' text 
  48.            string. This occurs every 3 ticks.  Note: There seems to
  49.            be some sort of conflict between rundemos and DLMdemo.
  50.            WAKEUP appears properly when running directly rather than
  51.            through rundemos.  In rundemos, WAKEUP is continuously 
  52.            displayed, for some reason.
  53.         Type ^U then 'sleep' and it will stop. This step is optional 
  54.            as any number of DLMs may be loaded and concurrently run.
  55.  
  56.         Type ^L again.
  57.         Type 'prempt'. This loads a new, dynamically loaded 'preempter' 
  58.            task. It will appear below the line on which the resident 
  59.            preempter task displays.  You may unload it by typing ^U and 
  60.            'preempt' if you desire, or just let it continue.
  61.  
  62.         Type ^L to load the third prepared program. Its title is 'msg', 
  63.            so type that too. 'msg' will await a message from another task. 
  64.            To send it a message type ^T then, in reponse to the prompt, 
  65.            type any text string you want. When you press your keyboard's 
  66.            Enter key your message will be displayed by the 'msg' task, 
  67.            following the 'DLM received...' string.  You do not have to wait 
  68.            until 'msg' is loaded to send a message. You may send it long 
  69.            before it is loaded, send as many as you like while its running, 
  70.            or send one after you've unloaded the 'msg' task. The latter 
  71.            message will appear as soon as you reload 'msg'.
  72.  
  73. Enjoy,
  74. Ron Schow & David Moore
  75. 7/12/93.
  76.