Subversion Repositories shark

Rev

Rev 1357 | 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
- jointest.c--> Simple test that uses the task_join primitive
30
- condtest.c--> Simple test that uses condition variables
31
- intsem.c  --> Simple test that uses internal semaphores
1099 pj 32
 
33
Graphical demos:
1119 pj 34
- fly.c     --> Random flies going around the screen
35
- ego.c     --> Periodic tasks that writes a phrease on the screen
36
- cabs.c    --> Example that uses cabs
1099 pj 37
 
38
Note on the init files:
39
- ihello.c   (RR+dummy)
1119 pj 40
- isemdemo.c (iaster1+Semaphores)
1099 pj 41
- iaster1.c  (EDF+RR+dummy)
42
- iaster3.c  (EDF+RR+TBS(0.1)+TBS(0.3)+dummy)
1119 pj 43
- iaster4.c  (iaster3+CBS)
1099 pj 44
- initfile.c (EDF+CBS+RR+dummy, SEMaphores, CABS, HARTPORTs and Keyboard)