File: README.txt

package info (click to toggle)
tinyos 2.1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 47,476 kB
  • ctags: 36,607
  • sloc: ansic: 63,646; cpp: 14,974; java: 10,358; python: 5,215; makefile: 1,724; sh: 902; asm: 597; xml: 392; perl: 74; awk: 46
file content (35 lines) | stat: -rw-r--r-- 1,183 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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.