]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tutorials/SharedResourceDemo/README.txt
Moved the apps/tests/TestSharedResources application into the tutorials directory...
[tinyos-2.x.git] / apps / tutorials / SharedResourceDemo / README.txt
diff --git a/apps/tutorials/SharedResourceDemo/README.txt b/apps/tutorials/SharedResourceDemo/README.txt
new file mode 100644 (file)
index 0000000..cafe125
--- /dev/null
@@ -0,0 +1,35 @@
+README for SharedResourceDemo
+Author/Contact: tinyos-help@millennium.berkeley.edu
+@author Kevin Klues <klues@tkn.tu-berlin.de>
+
+Description:
+
+This application is used to test the use of Shared Resources.  
+Three Resource users are created and all three request
+control of the resource before any one of them is granted it.
+Once the first user is granted control of the resource, it performs
+some operation on it.  Once this operation has completed, a timer
+is set to allow this user to have control of it for a specific
+amount of time.  Once this timer expires, the resource is released
+and then immediately requested again.  Upon releasing the resource
+control will be granted to the next user that has requested it in 
+round robin order.  Initial requests are made by the three resource 
+users in the following order.
+  -- Resource 0
+  -- Resource 2
+  -- Resource 1
+It is expected then that using a round robin policy, control of the
+resource will be granted in the order of 0,1,2 and the Leds
+corresponding to each resource will flash whenever this occurs.
+  -- Led 0 -> Resource 0
+  -- Led 1 -> Resource 1
+  -- Led 2 -> Resource 2
+
+Tools:
+
+None.
+
+Known bugs/limitations:
+
+None.
+