This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author [PlayerPencil](https://www.zhihu.com/question/658017543/answer/18224117594) | |
* Original Post: | |
* You might not believe it, but this is actually a simple program | |
* of operating system (just kidding). It's based | |
* on time-slice scheduling with no preemption, though it does have | |
* task priorities. The whole program is only about 100 lines long. | |
* Embedded developers, feel free to take it. It's | |
* been running smoothly for about 100 days now—the `systick` timer | |
* has even timed out several times. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
註曰「「此為鏈表節點煉製之術也。」」 | |
吾有一術。名之曰「節點煉製」。欲行是術。必先得一數。曰「甲」。乃行是術曰。 | |
吾有一物。名之曰「所求節點」。其物如是。 | |
物之「「數據」」者。言曰「甲」。 | |
物之「「前驅」」者。言曰「null」。 | |
物之「「後繼」」者。言曰「null」。 | |
是謂「所求節點」之物也。 | |
乃得「所求節點」。 | |
是謂「節點煉製」之術也。 |