Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.1 KB

File metadata and controls

53 lines (38 loc) · 1.1 KB

11_priority_inversion

../shell/rebuild_run_qemu.sh . -DDEMO_UNBOUNDED_C:BOOL=ON
../shell/rebuild_run_qemu.sh . -DDEMO_INHERITANCE_C:BOOL=ON

Introduction to RTOS Part 11 - Priority Inversion

Terminal Output

DEMO_UNBOUNDED_C
(H) lock acquired. Wait time: 5001

(L) trying to acquire lock.

(L) lock acquired. Wait time: 0
(H) trying to acquire lock.

(M) worky work.

(M) sleppy.

(L) lock released.

(H) lock acquired. Wait time: 5001
(H) lock released.

(H) sleepy.

DEMO_INHERITANCE_C: It is still priority inversion but bounded.
(H) lock acquired. Wait time: 241

(L) trying to acquire lock.

(L) lock acquired. Wait time: 1
(H) trying to acquire lock.

(L) lock released.

(H) lock acquired. Wait time: 241
(H) lock released.

(H) sleepy.

(M) worky work.

Notes

Use demo_init function in demo.c to implement your demo application. Run in debug console to dump the trace
-exec dump binary value trace.bin *RecorderDataPtr