SORT: Shell Sort
DATA STRUCTURE: binary tree
DESIGN PATTERN: bridge
When multi-thread, there is real-time AD data aquisition . How to assure the real time?
My answer: make the time that the resource is locked as short as possible.
This is similar as the isr in OS.