AUTOSAR
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    1
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Execution Management ###### tags: `報告` `專題` * noun explanation: * Application * to resolve a set of coherent functional requirements. * consists: * executable software units * additional execution related items (e.g. data or parameter files) * descriptive information used for integration end execution * In general, an Application, whether user-level or platform-level, is treated the same by Execution Management and can use all mechanisms and APIs provided by the Operating System and other functional clusters of the AUTOSAR Adaptive Plat- form. -> restricts its portability to other implementations of the AUTOSAR Adaptive Platform. * Adaptive application * is a specific type of Application. * Adaptive Applications are always located above the middleware. To allow portability and reuse, user level Applications should be Adaptive Applications whenever technically possible. * Executable * An Executable is a software unit which is part of an Application. It has exactly one entry point (main function) [SWS_OSI_01001]. An Application can be implmented in one or more Executables [TPS_MANI_01010]. * ![](https://i.imgur.com/lf0arTP.png) * Modelled Process * is an instance of an Executable and it is realized at run-time as an OS process. * Execution manifest * An Execution Manifest is created together with a Service Instance Manifest (not used by Execution Management) at design time and deployed onto a Machine together with the Executable it is attached to. * The Execution Manifest is bundled with the actual executable code in order to support the deployment of the executable code onto the Machine. * Each instance of an Executable binary, i.e. each started process, is individually configurable, with the option to use a different configuration set per Machine State or per Function Group State * Machine manifest * is also created at integration time for a specific Machine and is deployed like Execution Manifests whenever its contents change. * holds all configuration information which cannot be assigned to a specific Executable or its instances * Manifest Format * TheExecution ManifestsandtheMachine Manifestcanbetransformedfrom the original standardized ARXML into a platform-specific format * The format transforma- tion can be done either off board at integration time or at deployment time, or on the Machine (by Update and Configuration Management) at installation time. * About how to start nm: * double check about em start nm: * ![](https://i.imgur.com/WzCIAl4.png) * In this picture, * ![](https://i.imgur.com/XZ42jhO.png) * We can know that, platform moudles are contained in the applications in em's view. * And next, we need to know more about application. In the previous noun explanation, we know that there has an entry point. So, I think we should write a program with main function. * Executalbe lifecycle from deployment to execution * ![](https://i.imgur.com/ZnX9Yt8.png) * Besides executable, we also need to write execution manifest in order to support the deployment of the executable code onto the Machine. * A process is a loaded instance of an Executable, which is part of an Application. * Execution Management ensures that the integrity and authenticity of all Executa- bles and Executable-related data (e.g. manifests) is checked. * Depending on the Machine State or on any other Function Group State, de- ployed Executables are started during AUTOSAR Adaptive Platform startup or later. -> so we can suppose that nm will start closely after AUTOSAR Adaptive Platform startup because nm do not need to rely on the others module * Life cycle: * in Execution State * ![](https://i.imgur.com/OlhNyEm.png) * Execution States characterizes the internal lifecycle of a process. In other words, they describe it from the point of view of a process that is executed. * The Execution State of a process is used by Execution Management to construct and maintain the Process State * Execution State change notifications from a process result in Process State changes managed by Execution Management. * Execution Management considers process initialization complete when the Process State Running is reached whether this is achieved implicitly (by a Non-re- porting Process) or explicitly through a process reporting its Execution State. * A process is required (see [SWS_EM_01004]) to report kRunning state using the ara::exec::ExecutionClient::ReportExecutionState [SWS_EM_02003] method of class ara::exec::ExecutionClient * It would typically report after the completion of its initialization, but before Service Discovery is completed. If the process were to report kRunning only after Service Discovery completion, the non-deterministic delays may impact other processes, due to delays in resolution of Execution Dependencies. * Conclude in Execution State: * Execution State is describe states from the point of view of a process that is executed * When process compleleted its initializtion, it need to report "krunning state" to em its Execution State to let EM know that the process's initialization have done. * But we can know that, if we don't report krunning state to let em know we finished initializtion, there will be a module named Service Discovery to notify em that the process is finish. The only problem that we didn't report is that the non-deterministic delays may impact other processes, due to delays in resolution of Execution Dependencies. ( but nm don't have dependencies on the others module) * in Process Stste * Process States characterize the lifecycle of a process from the point of view of Execution Management. In other words, Process States represent the Exe- cution Management internal tracking of the Execution States (see Section 7.4.1) and hence there is no need for a standardized type * ![](https://i.imgur.com/JhmnpSq.png) * ![](https://i.imgur.com/TUx8dUS.png) * environment variable: * Execution Management initializes environment variables for processes. process specific environment variables are configured inits Execution Manifest. * ![](https://i.imgur.com/CarbCse.png) * start up with Arguments * Execution Management provides argument passing for a process containing one or more StateDependentStartupConfig in the role Process.stateDepen- dentStartupConfig. This permits different processes to be started with different arguments. * ![](https://i.imgur.com/DgTQMgd.png) * ![](https://i.imgur.com/KrbSZ06.png) * Execution Management supports passing arguments to a process in the same way that a shell passes command line arguments to a POSIX process. * Machine start up sequence : * EM -> EM initiates the Machine State : off state > start state (#1) -> EM reports Machine State Startup transition confirmation to State Management (#2) * (#1) During the transition, Execution Manage- ment requests startup of processes that exist in the Startup Machine State. * (#2) At that point, EM hands over responsibility for Function Group state management (i.e. initiation of state change requests) to State Management. * EM is not necessarily the first process launched, Other processes needed by the system may exist, * Please note that an Application consists of one or more Executables. There- fore to launch an Application, Execution Management starts processes as instances of each Executable. * ![](https://i.imgur.com/nXKJgrN.png) * ![](https://i.imgur.com/AT2DSyN.png) * ![](https://i.imgur.com/GNflXgo.png) * How to end nm? * Execution Management is started as part of the AUTOSAR Adaptive Platform startup phase and is responsible for starting and terminating processes. -> so we can know that em will terminate nm * Execution Management does not perform standardized termination handling - the response to receipt of a signal, e.g. SIGTERM, by Execution Management is there- fore implementation defined. * ![](https://i.imgur.com/TQ6SNk5.png) * Note that from the perspective of Execution Management, requirement [SWS_EM_01055] only requests the initiation of the steps necessary for grace- ful termination under the control of the process. * Execution ManagementmaysendSIGTERMatanytime,evenbeforetheprocess has reported kRunning state and thus the process is still in the Initializing Process State. On receipt of SIGTERM, a process simply commences the actual termination.-> we can terminate it any time * Terminating state target : * save persistent data * free all internally used resources * termination with exit status 0 (EXIT_SUCCESS) * EM as the parent process can help child process and take the appropriate platform-specific actions such as processing exe- cution dependencies that rely on the Terminated state and thus ensure that there is no overlap between these processes when both are running. -> but I think that we don't need it because nm don't rely on the others module * Another choice: * Execution Managementdifferentiatesbetweentwotypesofprocesses:Report- ing Processes and Non-reporting Processes. Reporting Processes are considered to be the normal form of processes and Non-reporting Processes are considered to be an exception. * Non-reporting Processes can be used to support running Executables which have not been designed with the AUTOSAR Adaptive Platform in mind. For example, if an Executable is available as binary only, if it is not feasible to patch its source code or if the Executable is only used during development time.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully