© John T. Taylor, Wayne T. Taylor 2021
J. T. Taylor, W. T. TaylorPatterns in the Machinehttps://doi.org/10.1007/978-1-4842-6440-9_14

14. Initialization and the Main Pattern

John T. Taylor1   and Wayne T. Taylor2
(1)
Covington, GA, USA
(2)
Golden, CO, USA
 

When your application runs, the initialization phase may be simple or very complex. Simple is where all of your code can start at any time regardless of what else may or may not have started. Complex is where the initialization of a module may depend on another module already being started.

Here is a hypothetical example. If you were working with three modules—power-on self-tests, a nonvolatile RAM driver, and a logging sub-system—the desired start-up sequence would be
  1. 1)

    Power on the self-tests (POST). ...

Get Patterns in the Machine: A Software Engineering Guide to Embedded Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.