
SCIOPTA - Real-Time Kernel
5-2 Manual Version 4.1 User’s Manual
SCIOPTA - Real-Time Kernel
5 Processes
5.3 Static Processes
Static processes are created by the kernel at start-up. They are designed inside a configuration utility by defining
the name and all other process parameters such as priority and process stack sizes. At start-up the kernel puts all
static created processes into READY or WAITING (stopped) state.
Static processes are supposed to stay alive as
long as the whole system is alive. But nevertheless in SCIOPTA static
processes can be killed at run-time but they will not return their used memory.
Figure 5-2: Process Configuration Window for Static Processes
5.4 Dynamic Processes
Dynamic processes can be created and killed during run-time. Often dynamic processes are used to run multiple
instances of common code. The number of instances is only limited by system resources and does not to be known
before running the system.
Another advantage of dynamic processes
is that the resources such as stack space will be given back to the system
after a dynamic process is killed.
Figure 5-3: Create Process System Call
sc_pid_t sc_procPrioCreate (
const char *name,
void (*entry) (void),
sc_bufsize_t stacksize,
sc_ticks_t slice,
sc_prio_t prio,
int state,
sc_poolid_t plid
);
Comentarios a estos manuales