Using Processes
The sections that follow describe how processes run in the Process and Windows environments.
Processes in the Process Environment
An executable process running in eRTOS consists of a set of handles to objects, process address space, and at least one thread. When a process is created, eRTOS performs the following tasks:
- Loads the executable using the eRTOS loader
- Allocates process heap
- Creates the primary thread
- Starts execution of the main thread at its entry point
A process can be started by one of these methods:
- Running the application batch file AutoStart.bat
-
Running the application using Run Consoler command
- Starting the process from within an application using RtCreateProcess
A process exits under one of these conditions:
- The last thread has exited
- One thread calls ExitProcess
- The process is terminated by RtTerminateProcess
Related topics: