home *** CD-ROM | disk | FTP | other *** search
- ***************************************************************************
- * Welcome to the smxWindows and smxProbe Demo! *
- ***************************************************************************
-
- This demo shows the capabilities of smxWindows and allows you to actually
- use smxProbe. An actual copy of smxProbe is linked in with the demo.
- At any time while running the demo, ^S toggles into and out of smxProbe. We
- suggest that you print the instructions for smxProbe (c:\smxdemo\probe.doc).
- A few minutes reading is all that is necessary to learn how to use smxProbe.
- Then you can really look behind the scenes of this demo!
-
-
- Running the Demo: 3 Sequences
-
- After the initial opening windows, there are 3 demo sequences for you
- to try. ^D switches between them. The first sequence shows window
- operations, such as window creation, deletion, and re-ordering. The
- "Status Window" indicates which smxWindows operation is being performed
- (e.g. Create, Destroy, etc.). After the sequence completes, it restarts.
- You can switch to the next sequence at any time.
-
- NOTE: Delays have been put in to slow the demo so you have time to read
- the status window and see what is happening.
-
- The second sequence is a simple demonstration of timeslicing. Each window
- is owned by a task. When one of the tasks runs, its window is moved to
- the front of the display and its counter increments.
-
- The third sequence is a simple demonstration of message sending. Each of
- the 5 stacked windows is owned by a separate receiving task. The window
- on the right is where you input a message to send. The top window
- receives the message first, then passes it to the next. The message is
- passed in order to the remaining windows, until finally, the last window's
- task returns the message to the free messages resource exchange. Each
- of the message receiving/sending tasks has its own exchange associated
- with it. The tasks are suspended on their respective exchanges until a
- message is received, and then output that message into their respective
- windows.
-
- NOTE: The message sending sequence contains long delays. smx is extremely
- fast and if it were not for the delays, the messages would appear
- to be received and output to all windows simultaneously! The delays
- were put in to allow you to see the progression of the message sending
- among the tasks.
-
-
- Source Code Provided
-
- We have provided the main part of the application code for this demo in
- order to show how smxWindows calls are made. You can examine the code
- and see how various parts of the demo were done. See ddemo.c. If
- you wish to view ddemo.c now, you can exit to DOS (Ctrl-X). Otherwise,
- the demo will run shortly after you are done viewing this file. (It is
- called ddemo.c since this demo was developed from the smx DOSdemo platform.)
-
- Besides demonstrating smxWindows, the code also shows a considerable amount
- about smx. The demo shows numerous examples of common operations such as
- task creation and message sending, and how nicely they are done with smx.
-
- Now that the demo files have been installed, you can run this demo directly
- from your hard disk, if you wish, without going through rundemos again.
- Just type "windemo".