Subversion Repositories shark

Rev

Rev 1099 | Rev 1357 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1099 pj 1
This directory contains a set of simple examples, useful to understand
2
How to make a Shark application.
3
 
4
Text mode demos:
1119 pj 5
- hello.c   --> a hello world application
6
- timer.c   --> tests if the time reads are always increasing
7
	        (useful for debugging purposes)
8
- sig.c     --> simple example that sends signals
9
- semdemo.c --> simple example that uses a semaphore for mutual exclusion
10
- pidemo.c  --> simple example that uses PI  mutexes between NRT and Hard tasks
11
- pcdemo.c  --> simple example that uses PC  mutexes between NRT and Hard tasks
12
- srpdemo.c --> simple example that uses SRP mutexes between NRT and Hard tasks
13
- mdemo.c   --> simple example that uses a mutex, initialized with whatever
14
                protocol you want ;-)
15
- aster.c   --> Wow! the original Hartik ASTER demo!!! (EDF, CABs, ...)
16
- aster1.c  --> a -lot- of periodic tasks that are created and then die
17
	        (6 seconds demo)
18
- aster2.c  --> a simple stress test: a lot of tasks are created until Utot=1;
19
	        uses jet functions to dump statistics. (60 seconds demo)
20
- aster3.c  --> aster2 + 8 tasks handled by 2 different TBS servers
21
- aster4.c  --> aster3 + CBS tasks + Shutdown demo with system tasks
22
- aster5.c  --> aster3 + only CBS tasks + mutexes... Really interesting!
23
- aster6.c  --> aster5 + Polling Server to serve the JetCtrl task
24
- aster7.c  --> another aster clone with Rate monotonic and Polling server
25
- aster8.c  --> aster5 + Sporadic Server
26
- preempt.c --> simple test for CBS, task_preempt, task_nopreempt, and
27
	        save/skip arrivals
28
- pcidemo.c --> PCI Bus scan
29
- talk.c    --> UDP Unix Talk clone (useful to understand the network driver)
30
- mousfind.c--> Simple text mouse protocol finder
31
- jointest.c--> Simple test that uses the task_join primitive
32
- condtest.c--> Simple test that uses condition variables
33
- intsem.c  --> Simple test that uses internal semaphores
34
- keycode.c --> Prints Keyboard Keycodes on the screen
35
- memtest.c --> Do you need to use malloc, kern_alloc & co?
1099 pj 36
 
37
Graphical demos:
1119 pj 38
- fly.c     --> Random flies going around the screen
39
- ego.c     --> Periodic tasks that writes a phrease on the screen
40
- cabs.c    --> Example that uses cabs
41
- sched.c   --> Scheduling example (mouse, EDF, RM, DS, PS, TBS)
1099 pj 42
 
43
Note on the init files:
44
- ihello.c   (RR+dummy)
1119 pj 45
- isemdemo.c (iaster1+Semaphores)
1099 pj 46
- iaster1.c  (EDF+RR+dummy)
47
- iaster3.c  (EDF+RR+TBS(0.1)+TBS(0.3)+dummy)
1119 pj 48
- iaster4.c  (iaster3+CBS)
1099 pj 49
- initfile.c (EDF+CBS+RR+dummy, SEMaphores, CABS, HARTPORTs and Keyboard)
1119 pj 50
- isched.c   (Configurable scheduling architecture)